light and fast JavaScript engine
I use BionicPup32.
Discussion, talk and tips
https://forum.puppylinux.com/
I forgot to mention that some of the machine I run SWiron are P4s with 512MB-728RAM. It runs at decent speeds with one or two tabs open.
Code: Select all
# lshw -class processor,memory -short
H/W path Device Class Description
==================================================
/0/0 memory 128KiB BIOS
/0/4 processor AMD Sempron(tm) 2600+
/0/4/9 memory 128KiB L1 cache
/0/4/a memory 256KiB L2 cache
/0/1b memory 512MiB System Memory
/0/1b/0 memory DIMM [empty]
/0/1b/1 memory 512MiB DIMM
/0/1b/2 memory DIMM [empty]
/0/100/0.1 memory RAM memory
/0/100/0.2 memory RAM memory
/0/100/0.3 memory RAM memory
/0/100/0.4 memory RAM memory
/0/100/0.5 memory RAM memory
I test iron linux 61 and 53. Both of them give Illegal instruction error.trister wrote: ↑Thu Oct 22, 2020 1:54 pm Try iron-linux_61.tar.gz (http://download1.srware.net/old/iron/li ... _61.tar.gz - taken from here : http://download1.srware.net/old/iron/linux/) . Unzip it and try it (hoping you have its dependencies).
I recommend starting at v61. You can try and go down (or up) of v61 for faster/lighter/less compatible.
You could try the one I made & use for myself (I don't know if it will work in your puppy version) : https://1fichier.com/?wenkzsg0gd0wdo7s3195 (name of the file is iron32_flash_v61.deb_v02b-wflash.squashfs -rename it to *.sfs)
If you prefer to go the firefox way : http://ftp.mozilla.org/pub/firefox/releases/.
find / | grep libgcrypt command in my system./iron: error while loading shared libraries: libgcrypt.so.11: cannot open shared object file: No such file or directory
Code: Select all
# find / | grep libgcrypt
find: ‘/proc/5201’: No such file or directory
/usr/bin/libgcrypt-config
/usr/share/aclocal/libgcrypt.m4
/usr/share/man/man1/libgcrypt-config.1.gz
/usr/lib/libgcrypt.a
/usr/lib/libgcrypt.so
/var/packages/builtin_files/libgcrypt
/lib/libgcrypt.so.20
/lib/libgcrypt.so.20.2.1
It seems that the latest palemoon version which is compatible with SEE is palemoon-27.9.4SSE.linux-i686Wiz57 wrote: ↑Thu Oct 22, 2020 3:57 pm I think you'll run into similar "errors" no matter which "newer" browser you try...
the AMD Sempron CPU you have is probably based on the old K7 microarchitecture,
which means it only supports SSE, not the newer SSE2, SSE3 etc. As I mentioned
above, this is going to restrict your choice, which is why I suggested Opera 12.16,
you might be able to get something like QtWeb to run (may need some QT libs)
or maybe Dillo (only partial javascript enabled). Another reason I suggested Opera
is those old versions had Dragonfly built in, which helped debugging javascript.
You won't be able to test, debug, or run newer javascript but for the basics it
may help. If you can't find it let me know, might be able to find something on
my old netbook in a tarball somewhere.
Wiz![]()
Code: Select all
wget -c ftp://contrib:get@ftp.palemoon.org/SSE-Linux/palemoon-27.9.4SSE.linux-i686.tar.bz2
--2020-10-22 20:26:46-- ftp://contrib:*password*@ftp.palemoon.org/SSE-Linux/palemoon-27.9.4SSE.linux-i686.tar.bz2
=> ‘palemoon-27.9.4SSE.linux-i686.tar.bz2’
Resolving ftp.palemoon.org (ftp.palemoon.org)... 80.255.0.190
Connecting to ftp.palemoon.org (ftp.palemoon.org)|80.255.0.190|:21... connected.
Logging in as contrib ...
Login incorrect.
Hmm, OK, try this...open a terminal, but instead of using wget, see if you can just use plain ftppuppy-2020 wrote: ↑Thu Oct 22, 2020 4:58 pmIt seems that the latest palemoon version which is compatible with SEE is palemoon-27.9.4SSE.linux-i686Wiz57 wrote: ↑Thu Oct 22, 2020 3:57 pm I think you'll run into similar "errors" no matter which "newer" browser you try...
the AMD Sempron CPU you have is probably based on the old K7 microarchitecture,
which means it only supports SSE, not the newer SSE2, SSE3 etc. As I mentioned
above, this is going to restrict your choice, which is why I suggested Opera 12.16,
you might be able to get something like QtWeb to run (may need some QT libs)
or maybe Dillo (only partial javascript enabled). Another reason I suggested Opera
is those old versions had Dragonfly built in, which helped debugging javascript.
You won't be able to test, debug, or run newer javascript but for the basics it
may help. If you can't find it let me know, might be able to find something on
my old netbook in a tarball somewhere.
Wiz![]()
http://li969-200.members.linode.com/puppy/viewtopic.php?p=1027003
https://forum.palemoon.org/viewtopic.php?f=40&t=13530&start=180
When I try to download palemoon-27.9.4SSE.linux-i686.tar.bz2 from the ftp server:Code: Select all
wget -c ftp://contrib:get@ftp.palemoon.org/SSE-Linux/palemoon-27.9.4SSE.linux-i686.tar.bz2 --2020-10-22 20:26:46-- ftp://contrib:*password*@ftp.palemoon.org/SSE-Linux/palemoon-27.9.4SSE.linux-i686.tar.bz2 => ‘palemoon-27.9.4SSE.linux-i686.tar.bz2’ Resolving ftp.palemoon.org (ftp.palemoon.org)... 80.255.0.190 Connecting to ftp.palemoon.org (ftp.palemoon.org)|80.255.0.190|:21... connected. Logging in as contrib ... Login incorrect.
Now another errorWiz57 wrote: ↑Thu Oct 22, 2020 6:19 pm Here's a link to Palemoon pets with just SSE, thanks to Watchdog at Murga forum!
At the bottom of his post is latest.
http://murga-linux.com/puppy/viewtopic. ... 676#973676
Wiz
Code: Select all
# palemoon
XPCOMGlueLoad error for file /usr/lib/palemoon/libxul.so:
/usr/lib/palemoon/glibc219/lib/libc.so.6: version `GLIBC_2.25' not found (required by /lib/libexpat.so.1)
Couldn't load XPCOM.
Hmm, this one MIGHT be solvable via the PPM, look for glibc2 and see if an update is in the repo.Now another error
Code: Select all
# palemoon
XPCOMGlueLoad error for file /usr/lib/palemoon/libxul.so:
/usr/lib/palemoon/glibc219/lib/libc.so.6: version `GLIBC_2.25' not found (required by /lib/libexpat.so.1)
Couldn't load XPCOM.
Top
Code: Select all
node file.js
Code: Select all
console.log("foo", var1, var2);
Code: Select all
FOO=bar; node -e 'console.log(`FOO is ${process.env.FOO}`)'
Code: Select all
FOO=bar
export FOO
node -e 'console.log(`FOO is ${process.env.FOO}`)'
Code: Select all
node myscript.js --cool-option=yes --fail=never --always
Try those:
PhantomJS - Scriptable Headless Browser
https://phantomjs.org/
Jsi is a javascript-ish interpreter with builtin websocket-server, sqlite and C-extensibility.
https://jsish.org/fossil/jsi/doc/ckout/README.md
https://en.wikipedia.org/wiki/Jsish
My attempts (3 years old on version 1.0)
Code: Select all
#!/usr/local/bin/jsish
var string;
console.log("Write your name: ");
string = console.input();
console.log("Hello World to You " + string);
console.log("What kind of fruits do you like?");
string = console.input();
switch (string)
{
case "bananas": console.log("Are You monkey?");
break;
case "oranges": console.log("I like them too!");
break;
default: console.log("Yum, yum ;)");
}
Code: Select all
#!/usr/local/bin/jsish
for (var i in console.args) {
puts(console.args[i]);
}
Code: Select all
var now = new Date(),
weekdays = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
fmt1 = now.getFullYear() + '-' + (1 + now.getMonth()) + '-' + now.getDate(),
fmt2 = weekdays[now.getDay()] + ', ' + months[now.getMonth()] + ' ' + now.getDate() + ', ' + now.getFullYear();
console.log(fmt1);
console.log(fmt2);
Code: Select all
console.log("What is you name");
var name = console.input();
console.log("Hello " + name + "!");
Code: Select all
console.log(Math.abs(-1));
console.log(Math.acos(-1));
console.log(Math.asin(-1));
console.log(Math.atan(-1));
console.log(Math.atan2(-1,-1));
console.log(Math.ceil(-1.2));
console.log(Math.cos(0));
console.log(Math.exp(1));
console.log(Math.floor(-1.2));
console.log(Math.log(10));
console.log(Math.max(-1,0,4));
console.log(Math.min(-1,0,4));
console.log(Math.pow(-1,2));
console.log(Math.random());
console.log(Math.round(-1));
console.log(Math.sin(1.578947));
console.log(Math.sqrt(9));
console.log(Math.tan(1));
Code: Select all
var string1 = new String(" The quick brown fox"); // or string1 = " The quick brown fox"
var string2 = new String(" jumps over the lazy dog ");
var string = string1.concat(string2); // or string = string1 + string2
console.log("1.", string);
//stringObject.charAt(index)
console.log("2.", string.charAt(1));
//error?
console.log("3.", string.charCodeAt(1));
//fromCharCode(code)
console.log("4.", string.fromCharCode(84));
//stringObject.indexOf(string)
console.log("5.", string.indexOf("e"));
console.log("6.", string.lastIndexOf("e"));
console.log("7.", string.match(/[A-Z]/g)[0]);
console.log("8.", string.replace(/[A-Z]/g,"t"));
console.log("9.", string.search(/[a-z]/g));
console.log("10.", string.slice(0,6));
console.log("11.", string.slice(6));
console.log("12.", string.split(" ")[0]);
console.log("13.", string.substr(0,6));
console.log("14.", string.substring(0,6));
//toLocaleLowerCase()
//toLocaleUpperCase()
//toLowerCase()
//toTitle(?chars?)
//toUpperCase()
console.log("20.", string.trim(" "));
console.log("21.", string.trimLeft(" "));
console.log("22.", string.trimRight(" "));
JSDB is JavaScript for databases, a scripting language for data-driven, network-centric programming on Windows, Mac, Linux, and SunOS. JSDB works with databases, XML, the web, and email. It is free and open-source. Use it as a JavaScript shell, to run CGI programs, or as a web server.
http://www.jsdb.org/
Thanks...........