Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,2 @@
---
from: http://rosettacode.org/wiki/Hello_world/Newbie

View file

@ -0,0 +1,17 @@
;Task:
Guide a new user of a language through the steps necessary
to install the programming language and selection of a [[Editor|text editor]] if needed,
to run the languages' example in the [[Hello world/Text]] task.
* Assume the language-newbie is a programmer in another language.
* Assume the language-newbie is competent in installing software for the platform.
* Assume the language-newbie can use one simple text editor for the OS/platform, (but that may not necessarily be a particular one if the installation needs a particular editor).
* Refer to, (and link to), already existing documentation as much as possible (but provide a summary here).
* Remember to state where to view the output.
* If particular IDE's or editors are required that are not standard, then point to/explain their installation too.
;Note<nowiki>:</nowiki>
* If it is more natural for a language to give output via a GUI or to a file etc, then use that method of output rather than as text to a terminal/command-line, but remember to give instructions on how to view the output generated.
* You may use sub-headings if giving instructions for multiple platforms.
<br><br>

View file

@ -0,0 +1,13 @@
; Hello World!
; Prints Hello, World! to stdout
BDOS equ 5 ; BDOS call entry
PRINT equ 9 ; BDOS string stdout subroutine
org 100h ; (mostly) All CP/M programs start at 100h
start lxi d,message ; load message pointer to DE register pair
mvi c,PRINT ; set up BDOS call to do string print
call BDOS ; call BDOS routine
ret ; pop back out into CP/M
message db 'Hello, World!','$' ; message string, all CP/M strings have an EOL of '$'

View file

@ -0,0 +1,18 @@
/* ARM assembly Raspberry PI */
/* program helloword64.s */
.data
szMessage: .asciz "Hello world. \n"
.equ LGMESSAGE, . - szMessage // compute length of message
.text
.global main
main:
mov x0,1 // output std linux
ldr x1,qAdrMessage // adresse of message
mov x2,LGMESSAGE // sizeof(message)
mov x8,64 // select system call 'write'
svc 0 // perform the system call
mov x0, 0 // return code
mov x8,93 // select system call 'exit'
svc 0 // perform the system call
qAdrMessage: .quad szMessage

View file

@ -0,0 +1,3 @@
main: (
printf($"Goodbye, World!"l$)
)

View file

@ -0,0 +1,18 @@
/* ARM assembly Raspberry PI */
/* program helloword.s */
.data
szMessage: .asciz "Hello world. \n"
.equ LGMESSAGE, . - szMessage @ compute length of message
.text
.global main
main:
mov r0, #1 @ output std linux
ldr r1, iAdrMessage @ adresse of message
mov r2, #LGMESSAGE @ sizeof(message)
mov r7, #4 @ select system call 'write'
swi #0 @ perform the system call
mov r0, #0 @ return code
mov r7, #1 @ request to exit program
swi 0
iAdrMessage: .int szMessage

View file

@ -0,0 +1,3 @@
BEGIN {
print "Hello" 3-1 "U", sprintf("%c",33)
}

View file

@ -0,0 +1,6 @@
procedure Main is
begin
-- Insert code here.
null;
end Main;

View file

@ -0,0 +1,5 @@
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
Put_Line("Hello World!");
end Main;

View file

@ -0,0 +1 @@
sudo apt install cabal-install

View file

@ -0,0 +1 @@
cabal update

View file

@ -0,0 +1 @@
cabal install Agda

View file

@ -0,0 +1,12 @@
module HelloWorld where
open import Agda.Builtin.IO using (IO)
open import Agda.Builtin.Unit renaming ( to Unit)
open import Agda.Builtin.String using (String)
postulate putStrLn : String -> IO Unit
{-# FOREIGN GHC import qualified Data.Text as T #-}
{-# COMPILE GHC putStrLn = putStrLn . T.unpack #-}
main : IO Unit
main = putStrLn "Hello world!"

View file

@ -0,0 +1 @@
agda --compile HelloWorld.agda

View file

@ -0,0 +1 @@
./HelloWorld

View file

@ -0,0 +1 @@
sudo apt install emacs

View file

@ -0,0 +1 @@
agda-mode setup

View file

@ -0,0 +1 @@
agda-mode compile

View file

@ -0,0 +1 @@
? "HELLO, WORLD!"

View file

@ -0,0 +1 @@
print "Hello World!!"

View file

@ -0,0 +1 @@
MsgBox, Hello World!

View file

@ -0,0 +1,3 @@
PROGRAM:MYPROGRM
:.HELLO
:Disp "HELLO, WORLD!",i

View file

@ -0,0 +1 @@
Print "HelloWorld!"

View file

@ -0,0 +1,4 @@
clg # Clear the graphics screen
font "Arial",10,100 # Set the font style, size, and weight respectively
color black # Set the color...
text 0,0,"HelloWorld!" # Display in (x,y) the text HelloWorld!

View file

@ -0,0 +1 @@
rlwrap ./BQN

View file

@ -0,0 +1 @@
"Hello, World!"

View file

@ -0,0 +1 @@
"!dlrow olleH">:#,_@

View file

@ -0,0 +1,6 @@
#include <iostream>
int main() {
using namespace std;
cout << "Hello, World!" << endl;
return 0;
}

View file

@ -0,0 +1 @@
$ sudo apt-get install open-cobol

View file

@ -0,0 +1,7 @@
program-id. hello-world.
procedure division.
display "Hello, World!"
goback
.

View file

@ -0,0 +1 @@
$ cobc -x -Wall -free ./hello.cob

View file

@ -0,0 +1,2 @@
$ ./hello
Hello, World!

View file

@ -0,0 +1 @@
$ lein new app my-hello

View file

@ -0,0 +1,3 @@
$ cd my-hello
$ lein run
Hello, World!

View file

@ -0,0 +1 @@
$ lein repl

View file

@ -0,0 +1,2 @@
10 PRINT "HELLO, WORLD!"
20 END

View file

@ -0,0 +1 @@
(format t "Hello world!~%")

View file

@ -0,0 +1 @@
(load "hello.lisp")

View file

@ -0,0 +1 @@
sudo snap install coq-prover

View file

@ -0,0 +1,3 @@
Require Import Coq.Strings.String.
Eval compute in ("Hello world!"%string).

View file

@ -0,0 +1,6 @@
import std.stdio;
void main()
{
writeln("Hello world!");
}

View file

@ -0,0 +1,3 @@
procedure TForm1.Button1Click(Sender: TObject);
begin
end;

View file

@ -0,0 +1 @@
Memo1.Lines.Add('Hello World');

View file

@ -0,0 +1,4 @@
procedure TForm1.Button1Click(Sender: TObject);
begin
Memo1.Lines.Add('Hello World');
end;

View file

@ -0,0 +1 @@
print "Hello world!"

View file

@ -0,0 +1,7 @@
;; This is a comment
;; Type in the following -uncommented- line in the input text area, and press [RETURN]
;; or click onto the "Eval" button
;; Auto-completion : You will notice that after "(di" , EchoLisp proposes "(display" :
;; Press the [TAB] key to accept
(display "Hello, World" "color:blue")

View file

@ -0,0 +1,21 @@
;; usage give the syntax(es) for a function call
;; "usage" abbreviation is "us"
(us display) → 📗 (display object css-style-string) (display object)
;; help opens the reference manual at the right place, in a browser tab
;; "help" abbreviation is "?"
(? display) → [http://www.echolalie.org/echolisp/help.html#display]
;; searching
;; (apropos name) displays the list of functions about 'name'
;; "apropos" abbreviation is "ap"
;; 'special' forms (you will learn that later) are flagged with 👀
;; 1:2 is the number or arguments. min 1, max 2
(ap list) → #(👀 for*/list:2:n 👀 for/list:2:n alist?:1 circular-list:1:n list->stack:2
list->vector:1 list-index:2 list-ref:2 list-sort:2 list-tail:2 list:1:n list?:1
maplist:2 set-plist!:2 stack->list:1 stream->list:1:2 string->list:1 sublist:3
symbol-plist:1 vector->list:1 )
;; Or you can press the "Help" button.
;; Lost in the reference manual ?
;; Just type-in a letter, and you will go to the alphabetical index.

View file

@ -0,0 +1,10 @@
class
APPLICATION
create
make
feature
make
do
print ("Hello World!")
end
end

View file

@ -0,0 +1 @@
class APPLICATION ... end

View file

@ -0,0 +1 @@
create make

View file

@ -0,0 +1 @@
make do ... end

View file

@ -0,0 +1 @@
print ( ... )

View file

@ -0,0 +1 @@
inherit ANY

View file

@ -0,0 +1,4 @@
public program()
{
console.writeLine("Hello world")
}

View file

@ -0,0 +1 @@
elc program1.l

View file

@ -0,0 +1 @@
program1

View file

@ -0,0 +1,6 @@
% Implemented by Arjun Sunel
-module(helloworld).
-export([main/0]).
main() ->
io:fwrite("Hello world!\n").

View file

@ -0,0 +1 @@
Print "HelloWorld!"

View file

@ -0,0 +1,5 @@
Cls 'Clear the graphics screen
Screen 1 'Mode 320x200
Locate 12,15
Print "Hello world!"
Sleep

View file

@ -0,0 +1,5 @@
window 1
print @"Hello, World!"
HandleEvents

View file

@ -0,0 +1 @@
println 'Hello to the Groovy world'

View file

@ -0,0 +1,2 @@
String hello = 'Hello to the Groovy world'
println hello

View file

@ -0,0 +1,2 @@
assert hello.contains('Groovy')
assert hello.startsWith('Hello')

View file

@ -0,0 +1 @@
$ sudo apt-get install ghc

View file

@ -0,0 +1,4 @@
$ touch hello.hs
$ cat > hello.hs << HERE
main = putStrLn "Hello, World!"
HERE

View file

@ -0,0 +1 @@
$ ghc hello.hs -o hello

View file

@ -0,0 +1,2 @@
$ ./hello
Hello, World!

View file

@ -0,0 +1 @@
'Hello, World!'

View file

@ -0,0 +1,2 @@
cmake -B build -GNinja
cmake --build build

View file

@ -0,0 +1,3 @@
fn main() {
println("Hello world!")
}

View file

@ -0,0 +1 @@
jakt hello.jakt

View file

@ -0,0 +1 @@
jakt -cr hello.jakt

View file

@ -0,0 +1 @@
javac -version

View file

@ -0,0 +1,6 @@
public class HelloWorld {
public static void main(String[] args) {
//Prints 'Hello world!' to terminal/console.
System.out.println("Hello world!");
}
}

View file

@ -0,0 +1,11 @@
public class HelloWorld {
public static void main(String[]args){
HelloWorld hw = new HelloWorld();
hw.run();
}
void run(){
//Print 'Hello world!' to console/terminal
System.out.println("Hello world!");
}
}

View file

@ -0,0 +1 @@
console.log("Hello, World!");

View file

@ -0,0 +1 @@
alert("Hello, World!");

View file

@ -0,0 +1,3 @@
$ echo '"Hello world!"' | jq .
C:\ echo "Hello world!" | jq .

View file

@ -0,0 +1 @@
curl -Ss http://hello.world.com | jq .

View file

@ -0,0 +1,5 @@
$ echo '"Hello world!"' > hello.txt
$ jq . hello.txt
C:\ echo "Hello world!" > hello.txt
C:\ jq . hello.txt

View file

@ -0,0 +1,3 @@
$ jq -n '"Hello world!"'
C:\ jq -n "Hello world!

View file

@ -0,0 +1 @@
jq -n -f hello.txt .

View file

@ -0,0 +1,7 @@
def binary_digits:
if . == 0 then 0
else [recurse( if . == 0 then empty else ./2 | floor end ) % 2 | tostring]
| reverse
| .[1:] # remove the leading 0
| join("")
end ;

View file

@ -0,0 +1,3 @@
fun main(args: Array<String>) {
println("Hello, World!")
}

View file

@ -0,0 +1,25 @@
The minimal installation is straightforward. Go to this URL:
- http://lambdaway.free.fr/lambdaspeech/?view=download
• 1) download the ~25kb archive,
• 2) unzip the archive, you get a ~100kb folder named "archive",
• 3) rename it for instance "my_wiki", avoiding spaces and esoteric characters,
• 4) open your FTP tool and upload the folder to your web account.
Your wiki "my_wiki" is ready! Now:
• 1) open any modern web browser and go to "my_wiki" in your web account,
• 2) the start page displays "Hello World",
• 3) click on the title "start" to open the edit menu,
• 4) in the editor frame, under the first line containing
_h1 Hello World
write for instance:
_p This is my first sentence, a new paragraph has been added.
• 5) then choose "save" in the menu.
Congratulations, your first web page is published.

View file

@ -0,0 +1 @@
sudo snap install --classic code

View file

@ -0,0 +1,4 @@
def main : IO Unit :=
IO.println ("Hello world!")
#eval main

View file

@ -0,0 +1 @@
10 print "Hello World!"

View file

@ -0,0 +1 @@
io.write("Hello world, from ",_VERSION,"!\n")

View file

@ -0,0 +1 @@
"Hello World";

View file

@ -0,0 +1 @@
print "Hello World!"

View file

@ -0,0 +1,3 @@
def sayHello():
traceln("Hello World")
sayHello()

View file

@ -0,0 +1 @@
monti

View file

@ -0,0 +1 @@
monti file.mt

View file

@ -0,0 +1 @@
|Hello, World!| PRINT .

View file

@ -0,0 +1 @@
echo "Hello world!"

View file

@ -0,0 +1 @@
"Hello world!"

View file

@ -0,0 +1 @@
(import <nixpkgs> { }).writeText "hello" "Hello world!\n"

View file

@ -0,0 +1 @@
print_string "Hello world!\n";;

View file

@ -0,0 +1 @@
ocamlc -o hello hello.ml

Some files were not shown because too many files have changed in this diff Show more