CUTCODEDOWN
Minimalist Semantic Markup

Welcome Guest
Please Login or Register

If you have registered but not recieved your activation e-mail in a reasonable amount of time, or have issues with using the registration form, please use our Contact Form for assistance. Include both your username and the e-mail you tried to register with.

Author Topic: Rust, how to create “Hello world” web page  (Read 44 times)

John_Betong

  • Full Member
  • ***
  • Posts: 178
  • Karma: +16/-1
    • The Fastest Joke Site On The Web
Rust, how to create “Hello world” web page
« on: 13 Oct 2021, 10:47:55 pm »
@Jason Knight,

I’m curious to know of your views regarding Rust which was introduced nearly ten years ago and now replacing parts of C in the Linux Kernel.

https://learnxinyminutes.com/docs/rust

I really like the idea that the language is compiled and should be ideal for websites.

I had a brief try and failed at producing “Hello world” and would be grateful for a Tutorial regarding web development using this Mozilla backed language.
Retired in the City of Angels where the weather suits my clothes

ingo

  • Junior Member
  • *
  • Posts: 17
  • Karma: +1/-0
Re: Rust, how to create “Hello world” web page
« Reply #1 on: 14 Oct 2021, 05:20:51 am »
Why would it be ideal for websites?

Could have a look at Nim https://nim-lang.org/ "Compiles" to C, C++ and javascript. Also webassembly.

John_Betong

  • Full Member
  • ***
  • Posts: 178
  • Karma: +16/-1
    • The Fastest Joke Site On The Web
Re: Rust, how to create “Hello world” web page
« Reply #2 on: 14 Oct 2021, 07:49:58 pm »
@ingo,
Only one compiled file to upload and rendering should be quicker.

Rust has apparently overcome C memory problems which is why the C routines are being replaced by Linux, Microsoft, etc

I like compiled languages :)


Retired in the City of Angels where the weather suits my clothes

benanamen

  • Full Member
  • ***
  • Posts: 151
  • Karma: +12/-0
Re: Rust, how to create “Hello world” web page
« Reply #3 on: 15 Oct 2021, 01:55:29 pm »
@ingo,

I like compiled languages :)

You might want to take a look at Go. (Golang)
To save time, let's just assume I am never wrong.

John_Betong

  • Full Member
  • ***
  • Posts: 178
  • Karma: +16/-1
    • The Fastest Joke Site On The Web
Re: Rust, how to create “Hello world” web page
« Reply #4 on: 15 Oct 2021, 09:02:45 pm »
@ingo,
I like compiled languages :)
You might want to take a look at Go. (Golang)

I experimented with Golang and was able to quickly produce a simple, Linux Command Line compiled application… unfortunately I was never able to create a web page to work on my Ubuntu Apache2 VPS :)


Details were raised on another forum without a satisfactory solution :(
« Last Edit: 16 Oct 2021, 04:57:19 am by John_Betong »
Retired in the City of Angels where the weather suits my clothes

 

SMF spam blocked by CleanTalk

Advertisement