Serving the Quantitative Finance Community

  • 1
  • 7
  • 8
  • 9
  • 10
  • 11
 
User avatar
DavidJN
Posts: 265
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: 23029
Joined: July 16th, 2004, 7:38 am

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: 23029
Joined: July 16th, 2004, 7:38 am

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: 347
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!"))
Website: https://jasonbelldata.com
Linkedin: https://www.linkedin.com/in/jasonbelldata/
Author of Machine Learning: Hands on for Developers and Technical Professionals (Wiley).
Contributor: Machine Learning in the City (Wiley).
 
User avatar
Cuchulainn
Topic Author
Posts: 23029
Joined: July 16th, 2004, 7:38 am

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: 23029
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

November 15th, 2023, 6:33 pm

 
User avatar
jasonbell
Posts: 347
Joined: May 6th, 2022, 4:16 pm
Location: Limavady, NI, UK
Contact:

Re: Hello World in all Languages, post here

November 16th, 2023, 6:48 am

Jason, do you know Elixir?
https://en.wikipedia.org/wiki/Elixir_(p ... _language)
One of Junior's  band buddies uses it.
I certainly know it exists but I don't use it. I'm mainly on Go, Clojure or Python at the moment. Though I'm investigating IBM's Qiskit (more Python) for the Quantum stuff, because AI doesn't mean what it used to and I'm bored of Linkedin nonsense as you full well know :)
Website: https://jasonbelldata.com
Linkedin: https://www.linkedin.com/in/jasonbelldata/
Author of Machine Learning: Hands on for Developers and Technical Professionals (Wiley).
Contributor: Machine Learning in the City (Wiley).
 
User avatar
Cuchulainn
Topic Author
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

November 16th, 2023, 1:35 pm

Yeah, a lot of dolce far niente all over..
 
User avatar
Cuchulainn
Topic Author
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

May 2nd, 2024, 11:35 pm

Rust
fn main() {
    println!("Hello, world!");
}
 
User avatar
Cuchulainn
Topic Author
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

June 10th, 2024, 1:35 pm

C++23
import std;

int main()
{
    std::println("Hello, world!");
}
 
User avatar
tags
Posts: 3623
Joined: February 21st, 2010, 12:58 pm

Re: Hello World in all Languages, post here

June 22nd, 2024, 8:32 am

C++23
import std;

int main()
{
    std::println("Hello, world!");
}

Is std::pritnIn different from the old std::cout?
What is the point of std::pritnIn ?
 
User avatar
Cuchulainn
Topic Author
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

June 22nd, 2024, 1:10 pm

C++23
import std;

int main()
{
    std::println("Hello, world!");
}

Is std::pritnIn different from the old std::cout?
What is the point of std::pritnIn ?
In a word: proselytising!!!

Getting the run of thenselves. Developers like to be part of a cult, Sapir-Whorf analogies.
 
User avatar
Alan
Posts: 3050
Joined: December 19th, 2001, 4:01 am
Location: California
Contact:

Re: Hello World in all Languages, post here

June 26th, 2024, 5:24 pm

"Hello world" at the post office:
 
User avatar
Cuchulainn
Topic Author
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

June 28th, 2024, 9:48 am

REXX
/* Main program */ 
say "Hello World" 
 
User avatar
Cuchulainn
Topic Author
Posts: 23029
Joined: July 16th, 2004, 7:38 am

Re: Hello World in all Languages, post here

October 17th, 2024, 1:35 pm

<<hello_world.fs>>=
: hello   ." Hello World!" CR ;


Forth