Moderators: phlip, Moderators General, Prelates
Berengal wrote:No <frame>?
I'm voting for <blink>, since the only valid useage of that is "<blink>do not use <frame> tags!</blink>". Same goes for marquee, but I only get one vote.
Ironically, the <frame> tag is less evil because it does add more than the <blink> and <marquee> tags. <frame> is like Hitler*, at least kind to animals, but <blink> and <marquee> are kind to at most one puppy between them (the puppy's name being "DIE HITLER DIE").
*This post is made of God and Win.
Facebook wrote:
- Code: Select all
#<<< Incompatible Browser | Facebook
* Facebook logo
[ ] Keep me logged in Forgot your password?
Email_______________ ____________________ ____________________
Login
Sign Up
Facebook helps you connect and share with the people in your life.
You are using an incompatible web browser.
Sorry, we're not cool enough to support your browser. Please keep it
real with one of the following browsers:
* Mozilla Firefox
* Safari
* Microsoft Internet Explorer
Facebook © 2010
English (US)
AboutAdvertisingDevelopersCareersTerms • Find FriendsPrivacyMobileHelp
CenterBlogWidgets
phillipsjk wrote:<Script> because few web-developers use the corresponding <noscript> tag for anything other than presenting you with a blank page.
Some use the <noscript> tags to tell you to enable JavaScript. Without details I have no idea if the site has a legitimate reason to request an arbitrary amount of CPU time, or if they just want my web-browser to send more information about me (Facebook, l'm looking at you).
<!DOCTYPE html>
<title>Foo</title>
<body>
<script>document.write('<noscript>');</script>
<p>blah blah blah...</p>
...
<script language="Brainfuck">>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]
<.#>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[
<++++>-]<+.[-]++++++++++.</script><noscript><p>Hello World!</noscript>
<p>Source: <a href="http://esoteric.sange.fi/brainfuck/bf-source/prog/HELLOBF.BF">Hello World program</a>
HTML 1.0 rendering wrote: >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]<.#>+++++++++++[<+++++>-]<.>++++++++[<+++>-<.+++.------.--------.[-]>++++++++[<++++>-]<+.[-]++++++++++.
Hello World!
Source: Hello World program
phillipsjk wrote:Web-browsers (and other user-agents) are supposed to ignore tags they don't recognize. That means a web-browser should render:
- Code: Select all
<script language="Brainfuck">>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]
<.#>+++++++++++[<+++++>-]<.>++++++++[<+++>-]<.+++.------.--------.[-]>++++++++[
<++++>-]<+.[-]++++++++++.</script><noscript><p>Hello World!</noscript>
<p>Source: <a href="http://esoteric.sange.fi/brainfuck/bf-source/prog/HELLOBF.BF">Hello World program</a>
As (if script tags not recognized):HTML 1.0 rendering wrote: >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-]<.#>+++++++++++[<+++++>-]<.>++++++++[<+++>-<.+++.------.--------.[-]>++++++++[<++++>-]<+.[-]++++++++++.
Hello World!
Source: Hello World program
Result with tags recognized:
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } <object data="./prog/HELLOBF.BF" type="script/brainfuck">
<p>Hello World!
<!-- Source: http://esoteric.sange.fi/brainfuck/bf-source/prog/HELLOBF.BF --></object>frezik wrote:Anti-photons move at the speed of dark
DemonDeluxe wrote:Paying to have laws written that allow you to do what you want, is a lot cheaper than paying off the judge every time you want to get away with something shady.
phillipsjk wrote:With brainfuck you would have to use an external file since the programming language uses reserved symbols, so the normal trick of hiding the code from the browser with a comment won't work.
No more than any other random program takes control away. At least they're restricted to their own page, and can in theory be sandboxed away in their own, limited sandbox that won't eat away all your CPU and memory. The issue is really that nobody asks the user if he wants to "install" a new program (however temporary).phillipsjk wrote:I don't like client-side scripting anyway: It takes control of the computer away from the user.
Berengal wrote: scripts should have a relatively low CPU and memory limit by default which could all be drawn from a common pool of say, 50% CPU and 1GB total, divided evenly among pages by default, or set on a per-page basis.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } hotaru wrote:Berengal wrote: scripts should have a relatively low CPU and memory limit by default which could all be drawn from a common pool of say, 50% CPU and 1GB total, divided evenly among pages by default, or set on a per-page basis.
but then i wouldn't be able to use the power of distributed computing for pointless things like trying to find the fourth wilson prime... well i could still do it, but the computing power available to me would be greatly reduced.
You, sir, name? wrote:You're not going to be able to squeeze -that- much power out of the CPU anyway, as javascript is mind-bogglingly slow compared to say C.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } hotaru wrote:You, sir, name? wrote:You're not going to be able to squeeze -that- much power out of the CPU anyway, as javascript is mind-bogglingly slow compared to say C.
javascript is slow, but if you use efficient algorithms and have it running on several hundred thousand machines, you can do some pretty impressive things.
You, sir, name? wrote:If you have said C code running on the same number of machines, you'll be done ten times faster.
You, sir, name? wrote:And the code can be made to run in low priority, so that it doesn't compete with important processes or screw up system latency. The same can not be said for javascript. Intensive javascript code -will- cripple the browser, if not the entire system.
You, sir, name? wrote:... unless you suggest doing it without the web site visitors' knowledge, in which case you're a CPU cycle robbing douchebag.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } hotaru wrote:You, sir, name? wrote:And the code can be made to run in low priority, so that it doesn't compete with important processes or screw up system latency. The same can not be said for javascript. Intensive javascript code -will- cripple the browser, if not the entire system.
unless you use setInterval in a reasonable manner, so the browser has plenty of opportunities to do whatever it needs to do.
hotaru wrote:You, sir, name? wrote:If you have said C code running on the same number of machines, you'll be done ten times faster.
obviously. but it's a lot easier to get people to let you run javascript in their browser than it is to get them to run a binary for you.
hotaru wrote:You, sir, name? wrote:... unless you suggest doing it without the web site visitors' knowledge, in which case you're a CPU cycle robbing douchebag.
i use setInterval, so i'm not hogging the cpu and crippling the browser. it's only without their knowledge if they have no idea at all what they're doing. their browser requests the javascript file. the server it's hosted on dutifully replies with the requested resource. anything that happens after that is entirely up to them.
You, sir, name? wrote:People let you run javascript on your website assuming you will use it responsibly for adding functionality that's to their benefit.
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } hotaru wrote:You, sir, name? wrote:People let you run javascript on your website assuming you will use it responsibly for adding functionality that's to their benefit.
apparently you don't understand how javascript in web pages works. i don't run the javascript in their browser. i just make it available. it's up to whoever is viewing the page whether to download it or not, and if they do download it, it's up to them whether to run it or not.
You, sir, name? wrote:hotaru wrote:You, sir, name? wrote:And the code can be made to run in low priority, so that it doesn't compete with important processes or screw up system latency. The same can not be said for javascript. Intensive javascript code -will- cripple the browser, if not the entire system.
unless you use setInterval in a reasonable manner, so the browser has plenty of opportunities to do whatever it needs to do.
This will have you obliterating older systems and underusing newer systems. Besides, any sort of task scheduling done with setInterval is going to be performing poorly at best.
apparently you don't understand how javascript in web pages works. i don't run the javascript in their browser. i just make it available. it's up to whoever is viewing the page whether to download it or not, and if they do download it, it's up to them whether to run it or not.
You, sir, name? wrote:Ah, so it's not secretly run in the background whenever someone visits the page, but an opt-in sort of deal?
phillipsjk wrote:Hotaru: Is that sort of like how users have the "option" of downloading a graphic picture when they visit goat.se? (I did not make that a link on purpose: lynx (a text-only browser) confirms your are still presented with a file called "hello.jpg" (The name of the site was provided for reference only. You DON'T need to visit.))
phillipsjk wrote:Not everyone knows the difference between their web-browser and their OS; never mind the difference between JavaScript, Flash, and syle sheets (all of which can but used for drop-down menus).
#include <stdio.h>
int main()
{ struct { unsigned a:3, b:3, c:2; } n = {0};
do do printf("%hhu\n", *&n);
while(!(n.a-- && !++n.b));
while(++n.c);
return 0; } hotaru wrote:You, sir, name? wrote:Ah, so it's not secretly run in the background whenever someone visits the page, but an opt-in sort of deal?
all javascript is. to run it, you have to be using a browser that supports javascript, and things like chrome's content filters, adblock, and noscript have to be set to allow it.
You, sir, name? wrote:It's a matter of abused trust. People let you run javascript on your website assuming you will use it responsibly for adding functionality that's to their benefit. By using their CPU cycles for other purposes, you're abusing that trust. And someone abusing trust through some technicality is like the definition of a douchebag.
hotaru wrote:yes. when i visit that site, all i see is a blank page. hello.jpg is not downloaded.
hotaru wrote:phillipsjk wrote:Not everyone knows the difference between their web-browser and their OS; never mind the difference between JavaScript, Flash, and syle sheets (all of which can but used for drop-down menus).
they should either learn the difference or get off the internet. you don't think we should let people who don't know the difference between a road and a sidewalk drive on sidewalks, do you?
ZeroSkulleton wrote:The most evil tag is </b>. Because its 1 character away from </b/>.
Users browsing this forum: Bing [Bot], GuetraGma and 2 guests