Serving the Quantitative Finance Community

  • 1
  • 7
  • 8
  • 9
  • 10
  • 11
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

February 14th, 2023, 8:44 pm

 
User avatar
tags
Posts: 3162
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: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

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: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

May 22nd, 2023, 11:02 pm

Toki pona
 
User avatar
Paul
Posts: 6604
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: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

May 23rd, 2023, 3:04 pm

Image
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

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: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

November 14th, 2023, 12:35 pm

 
User avatar
DavidJN
Posts: 242
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!
 
User avatar
DavidJN
Posts: 242
Joined: July 14th, 2002, 3:00 am

Re: Hello World in all Languages, post here

November 14th, 2023, 6:12 pm

Back to topic, here's "Hello World" using the Excel C-API:

static XLOPER12 xResult;
xResult.xltype = xltypeStr;
xResult.val.str = L"\014Hello World!";
return(LPXLOPER12)&xResult; 
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

November 14th, 2023, 7:31 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!
Developers want level 11.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

November 14th, 2023, 7:34 pm

Back to topic, here's "Hello World" using the Excel C-API:

static XLOPER12 xResult (xltypeStr, L"\014Hello World!") ;
Can this be shortened? Since it is a struct, the members are in contiguous memory?
 
User avatar
jasonbell
Posts: 60
Joined: May 6th, 2022, 4:16 pm
Location: Limavady, NI, UK
Contact:

Re: Hello World in all Languages, post here

November 15th, 2023, 10:15 am

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!
Developers want level 11.
The Mighty Wind was better for one line from Jennifer Coolidge, "Thank god for model trains, if they didn't have the idea for the model trains they'd never have gotten the idea for the big trains."

Meanwhile in functional Clojure land.....
(defn hello-world [] (println "Hello world!"))
Twitter: @jasonbelldata
Author of Machine Learning: Hands on for Developers and Technical Professionals (Wiley).
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

November 15th, 2023, 6:01 pm

Jason, do you know Elixir?
https://en.wikipedia.org/wiki/Elixir_(p ... _language)
One of Junior's  band buddies uses it.
 
User avatar
Cuchulainn
Topic Author
Posts: 20254
Joined: July 16th, 2004, 7:38 am
Location: 20, 000

Re: Hello World in all Languages, post here

November 15th, 2023, 6:33 pm