LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-16-2023, 01:41 PM   #1
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Rep: Reputation: Disabled
How did we end up with the mess called JavaScript?


Does anyone know how we ended up with the hellish JavaScript when we had before FOX-toolkit, FXRuby and TCL? They're POSIX compliant and best of all, actually makes sense without losing context between html and js.
 
Old 11-16-2023, 03:33 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
What is the context of your question? That is, how have you first encountered Javascript?

The history of Javascript is probably not relevant to your use, but you may be interested to see where this article leads you. What we know as Javascript is actually a superset of ECMAScript, and the current version as far as I am aware is ECMAScript-6.

I was not a fan of Javascript until recently, but I have come to like ECMAScript-6 even though my use of it is not broad.

Javascript (aka ECMAScript) is used primarily as the scripting language within web browsers. As you have compared it to FOX-Toolkit, FXRuby which is built on FOX-Toolkit, and TCL, I would guess you have encountered Javascript in a non-browser Node.js development environment (of which I am not a fan as yet). A description of your use case would help others provide more useful replies.

Last edited by astrogeek; 11-16-2023 at 03:46 PM. Reason: superset + typo
 
1 members found this post helpful.
Old 11-16-2023, 04:50 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
The history of JavaScript is extremely well-known. The fact the it was made in ten days (for Netscape) is obviously a factor here.

You claim that those other languages are "POSIX-compliant". Are they? And how would that be relevant, considering that a web browser is not a POSIX-compliant platform?

Last edited by dugan; 11-16-2023 at 05:19 PM.
 
Old 11-17-2023, 01:49 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,976

Rep: Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337Reputation: 7337
you can find a lot of pages on the net about it, for example this one: https://buttondown.email/hillelwayne...pt-in-10-days/
or this: https://medium.com/javascript-non-gr...t-58f440d6b3d8

Do you have actually any problem to solve?
 
Old 11-17-2023, 03:03 AM   #5
MUSTDOS
Member
 
Registered: Mar 2020
Distribution: antix
Posts: 100

Original Poster
Rep: Reputation: Disabled
Thanks all!

I went from JS to Ruby and FXRuby with pleasure until I found out ERB can't spit out HTML styled FXRuby pages.

It's overall a lot easier to manage FXRuby than JS; especially updating contents. I felt cheated.
 
Old 11-21-2023, 09:52 AM   #6
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 369
Blog Entries: 1

Rep: Reputation: 49
Quote:
Originally Posted by astrogeek View Post
[...]As you have compared it to FOX-Toolkit, FXRuby which is built on FOX-Toolkit, and TCL, I would guess you have encountered Javascript in a non-browser Node.js development environment[...]
I don't know about the first two,
but I remember that tcl was an early candidate for web page scripting,
inside the browser,
as early as late 90's.
 
Old 11-22-2023, 10:12 AM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
The "novel idea" of JavaScript was "prototypes." This gave an interpreted language great power at nominal cost – and "cost" was extremely important then. But it also made actual runtime behavior extremely runtime dependent ... which you see every day with so-called "ad blockers." You actually do not know, can be made unable to detect, and cannot change what the running code is actually doing on a particular computer.

It continues to baffle me why "JavaScript" won the race ... or, continues to do so. The various strange things that have been done to it, such as "just-in time machine code compiling which occurs on the client machine," continue to leave me shaking my head. "Why would any engineer ... engineer this?" And then, pour so much additional effort into it instead of replacing it?

By comparison, the truly p-compiled "Adobe Flash" was oh, so elegant. Where did "WASM" go?

Last edited by sundialsvcs; 11-22-2023 at 10:14 AM.
 
Old 11-27-2023, 05:32 PM   #8
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,246

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Quote:
Originally Posted by sundialsvcs View Post
Where did "WASM" go?
WebAssembly? It didn't go anywhere. It's widely used.
 
Old 11-28-2023, 07:40 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Quote:
Originally Posted by dugan View Post
WebAssembly? It didn't go anywhere. It's widely used.
Excellent. I'd lost touch with it lately.

However, it still mystifies me that people have poured effort into "just-in-time client-side compilers for JavaScript," when the obvious answer is and always has been to supply object code to the client rather than source. And, that "object code" could be anything that the situation required.

Likewise, why do we continue to build the back end of "web sites" using interpreted languages like PHP, Perl, Python, Ruby, and so-on? Why don't we just supply executable programs for the servers to run? The "at-run-time decisions" made by all of those interpreters, millions of times per second, do not change.

Last edited by sundialsvcs; 11-28-2023 at 07:42 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript <scripts> not working when called from program pizzipie Programming 5 10-07-2022 05:37 PM
[SOLVED] Why does this bash script work if called from the command line but not when called from a php script run by a webpage? KenHorse Linux - General 10 08-23-2021 05:39 AM
JavaScript function disappears after getting called for once mohtasham1983 Programming 2 02-23-2021 11:15 PM
LXer: An insecure mess: How flawed JavaScript is turning web into a hacker's playground LXer Syndicated Linux News 0 03-11-2017 06:12 AM
[SOLVED] Destructor called on objects in deque without it being called explicitly Snark1994 Programming 4 07-13-2011 08:05 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration