Serving the Quantitative Finance Community

 
User avatar
ikicker
Posts: 30
Joined: June 8th, 2011, 12:19 am

Re: Hello World in all Languages, post here

August 5th, 2021, 12:32 am

COBOL

$ vim helloworld

IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO-WORLD.
* simple hello world program
PROCEDURE DIVISION.
   DISPLAY 'Hello world!'.
   STOP RUN.
----
Undergraduate: accounting, finance, information systems; Graduate: MBA/finance; Graduate certificates: data science, applied statistics, advanced valuation; PhD candidate - data science

Blog: Www.ThinkerTinkerSolutions.com
 
User avatar
tags
Posts: 3601
Joined: February 21st, 2010, 12:58 pm

Re: Hello World in all Languages, post here

August 11th, 2021, 7:02 pm

 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

December 17th, 2022, 8:33 pm

Malbolge
(=<`#9]~6ZY327Uv4-QsqpMn&+Ij"'E%e{Ab~w=_:]Kw%o44Uqp0/Q?xNvL:`H%c#DD2^WV>gY;dts76qKJImZkj
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

February 14th, 2023, 8:32 pm

Stumbled on TurtleGraphics

Serious, just seen that Python supports Turtle Graphics. I used it on an Apple II way back to create business graphics package for project management (software product stayed in production for 19 years; Cost Control dept loved it, Procurement dept not..). Low level but it could do anything (output to shlow matrix printers).
turtle — Turtle graphics.


Sample (flashback>>)

import turtle
import time

c =turtle.Turtle()
c.getscreen().bgcolor("black")
c.color("red","yellow")
c.begin_fill()
c.fd(100)
c.lt(120)
c.fd(100)
c.lt(120)
c.fd(100)
c.end_fill()

time.sleep(10)
Last edited by Cuchulainn on February 14th, 2023, 8:46 pm, edited 2 times in total.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

February 14th, 2023, 8:35 pm

import turtle

win = turtle.Screen()
win.title("Hello World")
win.bgcolor("light blue")

turta = turtle.Turtle()  # I gave the name turta for my turtle
turta.color("black")  # make turta black (default color)
turta.pensize(4)  # set the width of turta as 4
turta.speed(20)

# Print the letter H
turta.penup()
turta.goto(-320, 0)
turta.pendown()
turta.left(90)
turta.forward(70)
turta.penup()
turta.goto(-320, 35)
turta.down()
turta.right(90)
turta.forward(50)
turta.penup()
turta.goto(-270, 70)
turta.pendown()
turta.right(90)
turta.forward(70)

# printing letter E
turta.penup()
turta.goto(-260, 0)
turta.pendown()
turta.right(180)
turta.forward(70)
turta.right(90)
turta.forward(35)
turta.penup()
turta.goto(-260, 35)
turta.pendown()
turta.forward(35)
turta.penup()
turta.goto(-260, 0)
turta.pendown()
turta.forward(35)

# printing letter L
turta.penup()
turta.goto(-210, 70)
turta.pendown()
turta.right(90)
turta.forward(70)
turta.left(90)
turta.forward(35)

# printing letter L
turta.penup()
turta.goto(-165, 70)
turta.pendown()
turta.right(90)
turta.forward(70)
turta.left(90)
turta.forward(35)

# printing letter O
turta.penup()
turta.goto(-90, 70)
turta.pendown()

for i in range(25):
    turta.right(15)
    turta.forward(10)

# printing  letter w
turta.penup()
turta.goto(-10, 70)
turta.pendown()
turta.right(55)
turta.forward(70)
turta.left(150)
turta.forward(70)
turta.right(155)
turta.forward(70)
turta.left(150)
turta.forward(70)

# printing letter O
turta.penup()
turta.goto(70, 55)
turta.pendown()

for i in range(25):
    turta.right(15)
    turta.forward(10)

# printing letter R
turta.penup()
turta.goto(160, 70)
turta.pendown()
turta.right(150)
turta.forward(70)
turta.goto(160, 70)
turta.right(200)
for i in range(20):
    turta.right(15)
    turta.forward(6)
turta.left(180)
turta.forward(60)

# printing letter L
turta.penup()
turta.goto(220, 70)
turta.pendown()
turta.right(40)
turta.forward(70)
turta.left(90)
turta.forward(35)

# printing letter L
turta.penup()
turta.goto(290, 70)
turta.pendown()
turta.right(90)
turta.forward(70)
turta.penup()
turta.goto(270, 70)
turta.pendown()
turta.left(120)

for i in range(15):
    turta.right(15)
    turta.forward(10)

turtle.done()
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

February 14th, 2023, 8:36 pm

Image

Only 150 lines of code!
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

February 14th, 2023, 8:44 pm

 
User avatar
tags
Posts: 3601
Joined: February 21st, 2010, 12:58 pm

Re: Hello World in all Languages, post here

February 18th, 2023, 1:55 pm

Stumbled on TurtleGraphics

Serious, just seen that Python supports Turtle Graphics. I used it on an Apple II way back to create business graphics package for project management (software product stayed in production for 19 years; Cost Control dept loved it, Procurement dept not..). Low level but it could do anything (output to shlow matrix printers).
turtle — Turtle graphics.


Sample (flashback>>)

import turtle
import time

c =turtle.Turtle()
c.getscreen().bgcolor("black")
c.color("red","yellow")
c.begin_fill()
c.fd(100)
c.lt(120)
c.fd(100)
c.lt(120)
c.fd(100)
c.end_fill()

time.sleep(10)

When I was 8 or 9 - the Commodore64 and ZX spectrum times! - my teacher brought with him a computer one day. He explained commands to draw line segments and asked each of us to write a program. We were fascinated then! In my memories commands were like what you’re showing here Cuch.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

February 20th, 2023, 12:08 pm

We describe the problem to be analysed as follows. An engineering company works
on projects for internal and external customers. A project represents the sequence
of activities that are executed by departments and the project is deemed to be
complete when each activity has been completed. A project has a start date and
duration. A project can be an internal project or an external project. An employee
works on several activities in a project and is allocated a certain number of hours
and other resources for each activity. Each department has its own area of expertise
(for example, steel design, mechanical engineering). Departments are grouped into
divisions and a given division may sponsor a number of internal projects. Companies
are the sponsors of external projects. The resources (in this case hours) are allocated
to departments and employees on a project basis.
An employee belongs to one department. In principle, the employee’s department
is the cost centre for the employee’s resource usage. A system needs to be built that
registers, validates and monitors basis project resource usage (in this case hours)
on a regular basis. In particular, the following requirements must be supported in
the system:
• MPC (Manpower Control System) processes transaction data once per period (e.g. per month).
• Resource utilization must be monitored.
• Status reporting capabilities must be available to stakeholders.
This is how many enterprise software systems are born, namely from an initial feature list.
 
(1980, Written in Pascal on Apple II with 128 KB memory, including hand-crafted reporting subsystem based on TurtleGraphics primitives, right up to that logo in left upper corner).
I would need 1000 to explain the output. Funny, but 10 years learn I wrote a MIS system to manage disk space in a network of VAX/VMS machines in oil and gas. The use cases and structure are almost in 1:1 correspondence with MPC.
In 2004 I formalised MIS models.
Attachments
mpc.jpg
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

May 22nd, 2023, 11:02 pm

Toki pona
 
User avatar
Paul
Posts: 7047
Joined: July 20th, 2001, 3:28 pm

Re: Hello World in all Languages, post here

May 23rd, 2023, 5:49 am

At one time that was my first language. In the sense that I knew a larger fraction of its vocabulary than any other language. My family tried learning it on a holiday.
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

May 23rd, 2023, 3:04 pm

Image
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

May 23rd, 2023, 8:23 pm

I suppose toki pona is a kind of pidgin, a word which when used may launch a tirade of insults. It is a precise term but many only remember the historical connotations. 
I would hate  to be a cultural anthropologist these days. Maybe quotes help.
// no Oxford commas used.

Image
 
User avatar
Cuchulainn
Topic Author
Posts: 22924
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

November 14th, 2023, 12:35 pm

 
User avatar
DavidJN
Posts: 262
Joined: July 14th, 2002, 3:00 am

Re: Hello World in all Languages, post here

November 14th, 2023, 6:10 pm

The "chicken head" knobs on my 90's Fender Blues Deluxe reissue amp all max out at 12. The classic vintage Fender amps stop at 10. Woo hoo!