News for hackers. Stuff that matters.
Re:Netscape and Sun announce JavaScript (1995) by 3cats-in-a-coat on Wednesday July 19, 2023 @05:23AM (#36783861)
I'm not sure about this. The web is first and foremost a document platform. Adding scripting to it could cause security problems, hurt usability and destroy the reliability of this new approach some startups are trying called "web search" which promises to automate index directories. I also wonder what's the difference between Java and JavaScript, at first glance, they look very similar.
Re:Netscape and Sun announce JavaScript (1995) by hutzlibu on Wednesday July 19, 2023 @05:45AM (#36783986)
But the web can change, to allow all kinds of online applications, running in a sandbox, so no one has to install anything, but can play games, write emails, share and edit images or whatever - all in the browser in one language. Ok, we might have to tweak js a bit, to get there ..
Re:Netscape and Sun announce JavaScript (1995) by WhackyIdeas on Wednesday July 19, 2023 @06:18AM (#36784185)
Ground control to hutzlibu
Re:Netscape and Sun announce JavaScript (1995) by osener on Wednesday July 19, 2023 @05:54AM (#36784048)
Clearly the right approach is to embed a native plugin into webpages so that an actually responsible company can be put in charge of building high performance and secure runtime for this. Let's call it FutureSplash.
Re:Netscape and Sun announce JavaScript (1995) by belter on Wednesday July 19, 2023 @06:04AM (#36784107)
It's not like this will affect a lot these companies bottom line. Sounds like they just spent 5 or 10 days of R&D on it...
Re:Netscape and Sun announce JavaScript (1995) by bitlad on Wednesday July 19, 2023 @06:10AM (#36784143)
You can basically do this in Java or Lisp or Smalltalk right? This is not going to work. No one will use this ever.
Re:Netscape and Sun announce JavaScript (1995) by WhackyIdeas on Wednesday July 19, 2023 @06:13AM (#36784164)
I can’t see the security issues you are talking about. But if there are, I’m sure it will be patched in a future release - so nothing to worry about there.
Re:Netscape and Sun announce JavaScript (1995) by tralarpa on Wednesday July 19, 2023 @06:17AM (#36784181)
I think they are exaggerating. They will just use it to animate some images on websites. What can go wrong? Nobody would be crazy enough to program large applications in such a slow and sketchy language.
Re:Netscape and Sun announce JavaScript (1995) by hutzlibu on Wednesday July 19, 2023 @06:31AM (#36784269)
I don't know, the world is full of crazy people. In the end this will be used so much, that it will be heavily optimized, so people will compile their normal languages towards it. I mean, I am obviously joking, but in a crazy world anything is possible.
Re:Netscape and Sun announce JavaScript (1995) by IMTDb on Wednesday July 19, 2023 @06:32AM (#36784271)
I don't see the point of this; you can already achieve something quite similar by compiling GNU PITA (Processor of Interactive Text Activity) with J.P. Blacker patch on top of it, which is publicly available on his FTP server.

Then to get interactive content; you just pipe the content of each page to the pita daemon using UNIX sockets and write the output to a file descriptor in the /dev/screen directory (just compile and mount the "interactive-wp" filesystem on /dev/screen first, of course).

The only gotcha is to ensure compatibility between these components, but someone shared a compatibility matrix on IRC a while ago, Sio it's common knowledge at this point.

Really these companies "innovations" are a joke.

Re:Netscape and Sun announce JavaScript (1995) by onion2k on Wednesday July 19, 2023 @06:34AM (#36784290)
The web is first and foremost a document platform.

The web is what we make it. If we want apps running in browsers (say, email clients) then that's what the web will become.

Re:Netscape and Sun announce JavaScript (1995) by withinboredom on Wednesday July 19, 2023 @06:34AM (#36784292)
I don't see how this could cause any security issues. The language barely does anything.

> A server-side JavaScript script might pull data out of a relational database and format it in HTML on the fly.

They must be joking. Who runs a server in a browser?

Re:Netscape and Sun announce JavaScript (1995) by icepat on Wednesday July 19, 2023 @06:38AM (#36784306)
I don't see what's wrong with embedding a programming language in the browser. It's light weight, and rather simple.

As long as this stays in the browser, and is not also used server-side, I don't think there's much to worry about. Since it's designed to be Java like, I suspect most developers would opt to use server-side Java, and this in browser. This probably won't change.

Re:Netscape and Sun announce JavaScript (1995) by jaggederest on Wednesday July 19, 2023 @06:47AM (#36784372)
I don't know, Java is such a new untested language, I'm not sure anyone will choose it for CGI programming over C, or maybe something like Perl.

[outside of kayfabe, Java was really first released in May 1995, only a few months before this press release, and was mostly used for applets and desktop applications (building a web browser!) - server side usage came a while later]

Re:Netscape and Sun announce JavaScript (1995) by Sharlin on Wednesday July 19, 2023 @07:13AM (#36784573)
I've taken a look at Java and its standard lib and it's really bad at the kind of text processing that 99% of CGI programming is. Hell, it doesn't even have regexps! To be fair, C is even worse, but that's why we have Perl.
Re:Netscape and Sun announce JavaScript (1995) by withinboredom on Wednesday July 19, 2023 @06:48AM (#36784378)
> As long as this stays in the browser, and is not also used server-side

It looks like this is exactly what they intend to do at some point. From the article:

> A server-side JavaScript script might pull data out of a relational database and format it in HTML on the fly.

I don't see how this would work, tbh.

Re:Netscape and Sun announce JavaScript (1995) by icepat on Wednesday July 19, 2023 @07:38AM (#36784777)
Yes, this does not make much sense to me. I will stick with Java and Perl until I see a viable reason to Go to something else. Maybe someone will create an improved version of C++ (though my skills there are rather Rusty).
Re:Netscape and Sun announce JavaScript (1995) by marcus0x62 on Wednesday July 19, 2023 @08:22AM (#36785161)
Yeah, you’d have to install yet another runtime on all of your nodes to support server-side JavaScript.

I’ve been playing around with this new language called Python. The indenting syntax takes a little getting used to, but the code is way more readable than Perl. Just be sure to set indent-tabs-mode: nil if you use Emacs.

Re:Netscape and Sun announce JavaScript (1995) by gruntled on Wednesday July 19, 2023 @09:34AM (#36786059)
Perl is the only way to go for serious CGI scripts. It’s so powerful, Python is limited and clunky by comparison. And a new language with syntactically important whitespace? Seriously? It will never displace Perl!
Re:Netscape and Sun announce JavaScript (1995) by marcus0x62 on Wednesday July 19, 2023 @10:15AM (#36786721)
Eh, maybe. well, nice talking. I'm going to go back to writing CFML. My boss bought a bunch of licenses with our last funding round, so I have to use it. I don't think it's going to make it any easier to write our reverse auction site for pet food discount coupons (don't tell anybody - we're still in stealth,) but whatever.
Re:Netscape and Sun announce JavaScript (1995) by bazoom42 on Wednesday July 19, 2023 @10:14AM (#36786708)
Python will never work on the web since different platforms use different characters to indicate line break.
Re:Netscape and Sun announce JavaScript (1995) by marcus0x62 on Wednesday July 19, 2023 @11:31AM (#36788071)
Not true. For your Unix hosts, you just need to write a perl script to strip carriage returns before running a script written on Windows, and substitute LF for CR for scripts written on a Mac and for your Windows hosts write a Visual Basic program to add CRs to Unix scripts and add LFs after CRs for Mac scripts.

If you figure out how to write an AppleScript program to munge the Unix and Windows scripts, let me know. Manually fixing them in BBedit is getting to be a real drag.

Re:Netscape and Sun announce JavaScript (1995) by LadyCailin on Wednesday July 19, 2023 @11:30AM (#36788054)
I know a guy Rasmus, working on this server side bit called Personal Home Page. Maybe worth checking out.
Re:Netscape and Sun announce JavaScript (1995) by ghayes on Wednesday July 19, 2023 @03:01PM (#36791525)
I think it’s fine so long as they come up with a consistent way to package this JavaScript code into modules. It would be crazy to have 3-4 competing standards.
Re:Netscape and Sun announce JavaScript (1995) by unscaled on Wednesday July 19, 2023 @07:16AM (#36784603)
> With JavaScript, an HTML page might contain an intelligent form that performs loan payment or currency exchange calculations right on the client in response to user input. A multimedia weather forecast applet written in Java can be scripted by JavaScript to display appropriate images and sounds based on the current weather readings in a region. A server-side JavaScript script might pull data out of a relational database and format it in HTML on the fly. A page might contain JavaScript scripts that run on both the client and the server. On the server, the scripts might dynamically compose and format HTML content based on user preferences stored in a relational database, and on the client, the scripts would glue together an assortment of Java applets and HTML form elements into a live interactive user interface for specifying a net-wide search for information.

JavaScript is obviously meant as a glue language. Component-based programming is quickly replacing binary files as the method of deployment with technologies like CORBA and COM (the base technology for OLE 2.0). Java Applets are Java's answer to portable, client-side UI component. But in order to integrate them with a static web page or with each other you need some glue code, and this is where JavaScript stands: write reusable components that unleash the full power of Java, and tie them up together using JavaScript glue code.

I expect that in the near future Sun will introduce a server-side component model to accompany Java applets. It'd be cool if they use some coffee-related name for that, idk, maybe Java Beans? This is going to revolutionize servers and everybody is going to throw away their cgi-bin/ folder with hacky perl scripts and move to components. Think about it! Instead of writing your own code, you can wire up mature components developed, each developed by an industry leader:

- Advanced Forms Applet by Microsoft - Server components for converting submitted forms into Excel spreadsheets, also by Microsoft - Database client developed by Oracle - Automatic stock ticker from Bloomberg - Integrated website search from Lycos - News applet from CNN

Sun is graciously aware of the great danger posed by the first company on this list, but in their great foresight they are going to define generic interfaces for every common type of component, and insert clauses into their license that will allow them to sue companies which try to extend these interfaces in an anti-competitive manner. Now, if you want to switch from Excel to Lotus 1-2-3 or from Oracle to Sybase or Informix you're also free to do so. The same goes for your OS, as all Java components are fully platform-independent. This is truly the future!

Re:Netscape and Sun announce JavaScript (1995) by pavlov on Wednesday July 19, 2023 @07:19AM (#36784616)
You could just buy WebObjects from NeXT and build amazing dynamic web applications with the best GUI tools and a true object-oriented language.

It’s only $50,000 but surely everyone making real web apps can afford that. It’s a rounding error compared to what you’re paying Sun for your server hardware.

Re:Netscape and Sun announce JavaScript (1995) by Cockbrand on Wednesday July 19, 2023 @08:38AM (#36785336)
I’ve seen an interesting approach for a lightweight, Open Source server side scripting language by a Danish programmer. It’s called PHP/FI and has been created specifically to make handling forms and dynamically generated Web pages easier. It might even evolve to be an alternative to buying WebObjects.
Re:Netscape and Sun announce JavaScript (1995) by unscaled on Wednesday July 19, 2023 @10:01AM (#36786484)
I don't see how it's going to beat Perl, which already lets you do the same things, but inside a full-fledged programming language. Many webmasters and server admins have already learned some Perl, and it's considered very easy to use (and even easier when you try to read other people's code).

I looked at PHP/FI for my own homepage before, but it's really nothing more than a rudimentary template language, a slightly more powerful version of httpd's Server Side Includes. Rasmus (the developer) seems to be quite happy with keeping it simple. Perhaps you'll be lucky and he'll change his mind and convert it to a full scripting language. Heh, maybe we'll even get two frustrated undergrad students who hate Perl to rewrite the parser so they can use it to write their computer science project. Maybe you'll even be very lucky and somebody will decide to write a popular system for writing web journals in PHP/FI that would take over the world (but how many people would be so self-absorbed as to maintain a web journal anyway).

And you still don't have the database and hardware side covered. PHP/FI seems to support mSQL. mSQL is cheap for commercial use, but still not free, and it doesn't even support JOINs! And you also need a server. You also need a server. httpd used to be cool, but NCSA is no longer maintaining that. There's a serious of patches running around, so you could just run a patchy version of httpd, but how far will that take you? Next you need a proper OS to run that thing on, but while we're all waiting for GNU Hurd, there's a guy from Finland who made a free *nix OS that's been gaining quite some traction recently. These Scandinavian guys are full of surprises. Maybe you'll be lucky again and there's yet another guy in Finland waiting to unleash a free software SQL database with joins, who knows.

Re:Netscape and Sun announce JavaScript (1995) by fipar on Wednesday July 19, 2023 @12:58PM (#36789592)
I like your optimism but lets get real here: the future of server-side web programming is emacs-lisp talking to Postgres95.
Re:Netscape and Sun announce JavaScript (1995) by sangnoir on Wednesday July 19, 2023 @02:13PM (#36790757)
> I don't see how it's going to beat Perl, which already lets you do the same things, but inside a full-fledged programming language

I don't know if you've heard of CPAN - it was introduced less than 2 months ago (October '95) and it's fantastic: you can browse and download modules off the world-wide web without hunting down tarballs on obscure FTP servers! The number of Perl modules on CPAN is growing daily! Any functionality a webmaster may want can be achieved using Perl CGI scripts - I highly recommend the latest CGI.pm (v2) whixhbyou can get from CPAN

Re:Netscape and Sun announce JavaScript (1995) by joquarky on Wednesday July 19, 2023 @03:06PM (#36791601)
I found a wicked email CGI script on there that is all that and a bag of chips. You can transfer the script into your cgi-bin directory and submit a form to it to collect feedback and all that.

Just put an animated mailbox icon on your home page that hyperlinks to a form page. Put the usual <INPUT> and <TEXTAREA> elements for "from", "subject", yada-yadda-yadda...

Then put in "hidden" type <INPUT> form elements for the "to" value. Totally make sure to make it hidden!

Add a submit button, and bada-bing, you're all set!

You can even send messages to your pager! Check the manual that came with it.

Re:Netscape and Sun announce JavaScript (1995) by mattl on Wednesday July 19, 2023 @11:36PM (#36796620)
What’s open source?
Re:Netscape and Sun announce JavaScript (1995) by oblio on Wednesday July 19, 2023 @05:19PM (#36793567)
> As long as this stays in the browser, and is not also used server-side, I don't think there's much to worry about.

I'm kind of breaking the immersion here, but I'm quite sure at some point Netscape was selling a Javascript powered web server.

Re:Netscape and Sun announce JavaScript (1995) by kagevf on Wednesday July 19, 2023 @05:42PM (#36793868)
I recall a web browser[1] written in /Java/ ... I don't remember any servers using javascript back then.

1. http://www.java.sun.com/products/archive/hotjava/index.html

Re:Netscape and Sun announce JavaScript (1995) by oblio on Thursday July 20, 2023 @08:57AM (#36799784)
Re:Netscape and Sun announce JavaScript (1995) by kagevf on Thursday July 20, 2023 @04:23PM (#36806217)
That's definitely server side JS, but I thought the person I was replying to meant a web server that was written in JS, but I suppose "powered" could mean that it just runs JS.

I saw that link elsewhere in this thread after my reply, and I also thought that this might have been what was being referred to.

Re:Netscape and Sun announce JavaScript (1995) by david-gpu on Thursday July 20, 2023 @08:44AM (#36799659)
> I suspect most developers would opt to use server-side Java, and this in browser

But why create a new language just for the browser? It clearly makes more sense to use Java in both the server and the browser. We could write little Java applications inside the browser; say we call them "applets"?

Re:Netscape and Sun announce JavaScript (1995) by fnordpiglet on Wednesday July 19, 2023 @06:44AM (#36784342)
That’s exactly what marketing said and tried to kill mocha in the crib. Engineering snuck it in anyways then they’re all about damage control.

Source: I was there

Re:Netscape and Sun announce JavaScript (1995) by jjallen on Wednesday July 19, 2023 @07:17AM (#36784610)
How will this affect my beloved CompuServe subscription?
Re:Netscape and Sun announce JavaScript (1995) by everdrive on Wednesday July 19, 2023 @07:20AM (#36784636)
It might even encourage every single webpage to be a bloated, user-hostile mess.
Re:Netscape and Sun announce JavaScript (1995) by WhackyIdeas on Wednesday July 19, 2023 @02:58PM (#36791474)
The information superhighway won’t stand for that.
Re:Netscape and Sun announce JavaScript (1995) by Mordisquitos on Wednesday July 19, 2023 @07:31AM (#36784726)
I agree, but I wouldn't worry too much. This just adds new functionalities that weren't previously possible using straightforward documents, and may save some bandwidth and time by reducing the need for back-and-forth request/response to CGI servers for doing small calculations that could take place on the client.

As this has no relevance for serving and requesting pure documents there will be no need for us to use a java-script capable web browser if all we want is to read websites.

Re:Netscape and Sun announce JavaScript (1995) by austin-cheney on Wednesday July 19, 2023 @07:53AM (#36784888)
Two things:

1) Introducing scripting to the web can introduce security concerns, but this is the wrong way to think about interconnected systems. By far the greater security concern is trust models built over anonymous connections. When you can eliminate anonymity or the security implications therein most of the security issues that arise from the availability of scripting are like wise mitigated.

2) The greatest difference between JavaScript and Java is that Java will force OOP on you, in JavaScript functions are first-class citizens, and the scope model is always lexical. I abhor OOP and completely avoid the ambiguity of inheritance and keyword pronouns when writing JavaScript. Always choose composition over inheritance. When I see people intentionally do otherwise I immediately assume they have no idea what they are doing.

Re:Netscape and Sun announce JavaScript (1995) by indymike on Wednesday July 19, 2023 @08:47AM (#36785448)
> keyword pronouns when writing JavaScript.

This, when read using 2023 political correctness caused me to have to wipe coffee off of my laptop screen. I'm picturing HR paying me a visit because my last commit misgendered the Person object.

Re:Netscape and Sun announce JavaScript (1995) by benterix on Wednesday July 19, 2023 @09:34AM (#36786061)
...or deadnamed a deleted reference.
Re:Netscape and Sun announce JavaScript (1995) by donohoe on Wednesday July 19, 2023 @07:58AM (#36784922)
Agree, if we are to go in this direction I’d rather wait and see what Microsoft is doing with VBScript next year. It uses the COM to access elements of the environment within which it is running. That’s the future. Or Perl.
Re:Netscape and Sun announce JavaScript (1995) by zoky on Wednesday July 19, 2023 @08:05AM (#36784984)
I’m still hard-pressed to see what advantages HTTP offers over more mature protocols such as FTP and Gopher.
Re:Netscape and Sun announce JavaScript (1995) by kakwa_ on Wednesday July 19, 2023 @08:20AM (#36785137)
I'm really confused, is JavaScript just a rebranding of Java applets? maybe with some minor overlays on top of it?

That sounds more like a marketing stunt to me.

Re:Netscape and Sun announce JavaScript (1995) by TheOtherHobbes on Wednesday July 19, 2023 @08:41AM (#36785368)
Really disappointed this isn't a full Lisp in the browser.

Lisp is so obviously the future of the web, so this seems like a backward step to me.

Re:Netscape and Sun announce JavaScript (1995) by bazoom42 on Wednesday July 19, 2023 @09:57AM (#36786423)
A Lisp which used < > instead of ( ) would itegrate very nicely with HTML.
Re:Netscape and Sun announce JavaScript (1995) by bokchoi on Wednesday July 19, 2023 @01:44PM (#36790317)
Ah, that's what the L is XSLT stands for!
Re:Netscape and Sun announce JavaScript (1995) by kazinator on Wednesday July 19, 2023 @05:21PM (#36793607)
That existed: MDL.

Well, MDL has < > conses and ( ) conses. These have a different type tag, but are otherwise identical. MDL uses that to give the two different semantics, situationally.

Re:Netscape and Sun announce JavaScript (1995) by bazoom42 on Wednesday July 19, 2023 @08:45AM (#36785424)
> I also wonder what's the difference between Java and JavaScript, at first glance, they look very similar.

JavaScript is a scripting language and therefore much easier to use. No slow compilation and build step, no complex and rigid type system yelling at you, no dependency hell. Just type the code in notepad and press f5 in the browser to see it run. You dont need to understand advanced concepts like classes or packages or exceptions. It is as simple to write as an Excel macro.

Java on the other hand requires professional programmers, which are a lot more expensive than web designers, and less fun.

Re:Netscape and Sun announce JavaScript (1995) by neilv on Wednesday July 19, 2023 @09:41AM (#36786170)
It's 1995. What's a "Web designer"?

You mean those graphic design people who try to make the whole page as a GIF, like they're making a print brochure, and just don't get hypertext?

Don't worry, they'll clue in or get left behind.

The power of a global distributed hypertext for free sharing of information is so superior that it can't be subverted.

The Internet sees these advertising-type designers as damage, and routes around them.

Re:Netscape and Sun announce JavaScript (1995) by ryandrake on Wednesday July 19, 2023 @11:28AM (#36788016)
> You mean those graphic design people who try to make the whole page as a GIF, like they're making a print brochure, and just don't get hypertext?

> Don't worry, they'll clue in or get left behind.

Time traveler here. People with this same mentality are still working in 2023, but instead of making the whole page an image, they're making the whole page a "web app". Almost three decades later, they still don't get hypertext.

Re:Netscape and Sun announce JavaScript (1995) by bazoom42 on Wednesday July 19, 2023 @01:18PM (#36789906)
Whole-page gifs were only necessary because of the lack of layout support in HTML. But with the recent introduction of the powerful TABLE-tag, HTML now has a future-proof layout model which will surely be enhanced further with more tags, giving a fine-grained control over typography and layout.
Re:Netscape and Sun announce JavaScript (1995) by throw0101b on Wednesday July 19, 2023 @09:14AM (#36785753)
> JavaScript is a scripting language and therefore much easier to use.

There are already scripting languages available. Why not just use something like Tcl which is lightweight and easily embeddable? Why re-invent the wheel?

Re:Netscape and Sun announce JavaScript (1995) by bazoom42 on Wednesday July 19, 2023 @09:39AM (#36786139)
If they had to chose an existing scripting language, surely Perl would be the obvious choice? Perl is designed after how humans think, where other languages force you to think like a computer.
Re:Netscape and Sun announce JavaScript (1995) by panick21_ on Wednesday July 19, 2023 @11:26AM (#36787998)
Perl was pretty complex and not easy to embed. Self would have made sense, as Sun already had a very good implementation.
Re:Netscape and Sun announce JavaScript (1995) by jpalomaki on Wednesday July 19, 2023 @09:50AM (#36786314)
Some history can be found at least here [1] and [2]. Based on that, the original idea was to build something that was based on Scheme. Then Sun came to the picture. They already had Java and there was pressure to have something that looked like Java. Story was that you would Java for the big stuff and Javascript for more light-weight client-side tasks.

That (marketing) worked out pretty well. At least for me it took years to figure out what kind of language Javascript really was. Seeing jQuery for the first time was kind of revelation.

[1] https://auth0.com/blog/a-brief-history-of-javascript/ [2] https://2ality.com/2011/03/javascript-how-it-all-began.html

Re:Netscape and Sun announce JavaScript (1995) by andsoitis on Wednesday July 19, 2023 @10:04AM (#36786530)
> There are already scripting languages available. Why not just use something like Tcl which is lightweight and easily embeddable? Why re-invent the wheel?

This just begs the question: why are there already multiple scripting languages available.

And this further begs the question: why are people still "re-inventing" the wheel by building new languages?

Re:Netscape and Sun announce JavaScript (1995) by foobarian on Wednesday July 19, 2023 @11:48AM (#36788351)
https://stancarey.wordpress.com/2015/12/09/raising-the-quest...

"There was once a dream that was Rome. You could only whisper it. Anything more than a whisper and it would vanish, it was so fragile. And I fear that it will not survive the winter."

Re:Netscape and Sun announce JavaScript (1995) by andsoitis on Wednesday July 19, 2023 @02:00PM (#36790567)
Thanks for the illuminating explanation.

Sounds like I can blame whoever translated to English in a 1581 text of Aristotle’s Prior Analytics, the wrong usage of “beg”.

At the same time, I intend to use the phrase correctly in the future!

Re:Netscape and Sun announce JavaScript (1995) by foobarian on Wednesday July 19, 2023 @02:13PM (#36790770)
> At the same time, I intend to use the phrase correctly in the future!

These kinds of dual usages come up pretty often, but in that spectrum I find this one very interesting because it is somehow very good at scratching some sort of intellectual/elitist itch in all of us. Both usages are fine, but one is more rare (but not too rare) and "came first" so is ostensibly more "correct." Which makes it very satisfying to bring up in these kinds of conversations :-)

Re:Netscape and Sun announce JavaScript (1995) by olddustytrail on Wednesday July 19, 2023 @03:00PM (#36791511)
You did use it correctly.

Anyone arguing that you can't use words to mean what they obviously mean and that everyone takes them to mean, but instead must only use them to refer to obscure logical fallacies is clearly nuts and should be ignored.

Re:Netscape and Sun announce JavaScript (1995) by peterashford on Wednesday July 19, 2023 @11:59PM (#36796745)
it's not an obscure logical fallacy, it's very common indeed
Re:Netscape and Sun announce JavaScript (1995) by blacksqr on Wednesday July 19, 2023 @11:41AM (#36788235)
Don't worry, Tcl is also being proposed as the internet scripting language standard. I'm sure wiser heads will prevail.
Re:Netscape and Sun announce JavaScript (1995) by smashed on Wednesday July 19, 2023 @11:55AM (#36788472)
Or what millions of windows developers already know and love: visual basic.

I hope Microsoft comes up with something like it, so we are not forced to learn java in order to add scripts to html pages.

Re:Netscape and Sun announce JavaScript (1995) by bazoom42 on Wednesday July 19, 2023 @12:23PM (#36788951)
There is great synergy in having the two complementary language using (almost) the same syntax. E.g. Both use ‘this’ to refer to the current object, both use ‘==‘ to compare values, use the same Date library which is throughly tested and future proof etc.
Re:Netscape and Sun announce JavaScript (1995) by yoz on Wednesday July 19, 2023 @11:34PM (#36796610)
Wow, that’s exciting! Maybe I’m being too optimistic, but does this mean we’ll soon be able to write single pieces of code that can execute on both client- and server-side?

It sounds like pure Java will get us part of the way there thanks to applets – which are also supported in Netscape 2.0 – but JavaScript gives much more control of the whole page. I played with it in an early beta when it was called LiveScript and wrote a crossword puzzle that didn’t need to reload the page at all. Amazing! Now if I can write the backend part in Java and have it work the same way…

I can’t wait for the Java and JavaScript syntaxes to unite and make web page development simpler. Netscape and Sun HQs are just a handful of miles apart, so come on folks, don’t drag it out! Could we get this before the end of the year?

Re:Netscape and Sun announce JavaScript (1995) by cmsj on Wednesday July 19, 2023 @11:10AM (#36787758)
I agree with this comment. I will now email the webmaster to ask them to update the vote count for your post because it deserves attention.
Re:Netscape and Sun announce JavaScript (1995) by vishnugupta on Wednesday July 19, 2023 @11:35AM (#36788125)
Is JavaScript a Java scripting language for terminals? Can I do #!/bin/javascript ?
Re:Netscape and Sun announce JavaScript (1995) by blacksqr on Wednesday July 19, 2023 @11:50AM (#36788389)
What the hell is an "object scripting language"? I'm skeptical, but if there's a natural mapping of JavaScript objects to HTML element hierarchies, and an easy way for JavaScript to parse structured information received from a server, I suppose it could be a good thing.
Re:Netscape and Sun announce JavaScript (1995) by sublinear on Wednesday July 19, 2023 @01:23PM (#36789983)
> The web is first and foremost a document platform.

I'm here from the future to tell you there's never been much difference between an app UI and a document.

> Adding scripting to it could cause security problem

Everyone eventually gets their shit together after witnessing the catasrophically bad security issues caused by idiots desperately avoiding javascript with even worse ideas and implementations.

Re:Netscape and Sun announce JavaScript (1995) by royaltheartist on Wednesday July 19, 2023 @01:33PM (#36790151)
Really hope no one uses this to mess up the behavior of anchor tags
Re:Netscape and Sun announce JavaScript (1995) by bazoom42 on Thursday July 20, 2023 @03:43AM (#36797858)
Btw the security problems are solved by having Java and JavaScript running in a secured “sandbox” isolated from the underlying system. So security issues will be a thing of the past.