I assumed nodejs is C++ software that would compile on any Linux arch, but I guess the V8 Javascript engine does some low-level stuff that needs be ported to every CPU architecture. The V8 Website mentions: x86, Arm, MIPS, PPC64, s390, RISC-V and Loong64. Not much support for legacy or big-endian platforms.
Not much support for legacy or big-endian platforms.
All PPC, most MIPS and some ARM systems are big-endian.
Hello Digital!
15 Jan 23 12:25, you wrote to Oli:
Not much support for legacy or big-endian platforms.
All PPC, most MIPS and some ARM systems are big-endian.
I've read that some or all ARM chips can be switched to work in either mode.
Hello Digital!
15 Jan 23 12:25, you wrote to Oli:
Not much support for legacy or big-endian platforms.
All PPC, most MIPS and some ARM systems are big-endian.
I've read that some or all ARM chips can be switched to work in either mode.
Vorlon wrote (2023-01-16):
Hello Digital!
15 Jan 23 12:25, you wrote to Oli:
Not much support for legacy or big-endian platforms.
All PPC, most MIPS and some ARM systems are big-endian.
All three architectures are big-endian AND little-endian.
Unfortunately nodejs will most likely never run on m68k.
I've read that some or all ARM chips can be switched to work in
either mode.
Yeah, MIPS processors are like that too, but while in my experience
most ARM systems run little-endian, most MIPS systems run big-endian.
Not much support for legacy or big-endian platforms.
All PPC, most MIPS and some ARM systems are big-endian.
All three architectures are big-endian AND little-endian.
I've written code for a lot of PPC-based systems, not one has ever been little-endian. I do see they now exist, but appear to be pretty rare.
Similarly, all the MIPS-based systems I've developed for have been big-endian.
All PPC, most MIPS and some ARM systems are big-endian.
I've read that some or all ARM chips can be switched to work in either mode.
I've written code for a lot of PPC-based systems, not one has ever been little-endian. I do see they now exist, but appear to be pretty rare.
Hello Digital Man!
I've read that some or all ARM chips can be switched to work in either mode.
Yeah, MIPS processors are like that too, but while in my experience most ARM systems run little-endian, most MIPS systems run big-endian.
And it catches many people out... #-0)
Btw: would SBBS compile and work on M68K Linux?
In fact, many of them can select at right-time, by setting^^^^^^^^^^ run-time. Sigh.
a bit in a control register. It can even vary based on the
target of a branch.
Unfortunately nodejs will most likely never run on m68k.
It was just a excuse to see if it would... If I could program, then it would have been something to do... Alas, I'm not...
Unfortunately nodejs will most likely never run on m68k.
It was just a excuse to see if it would... If I could program, then it would have been something to do... Alas, I'm not...
I'm glad you did. I was not aware that nodejs / V8 is so damn picky
about the CPU. I thought it would compile on any Linux / BSD. But unfortunately that is the way the web devs / companies are heading for quite some time. Creating libraries and web sites / apps on monstrous JavaScript frameworks. Wasting so much resources that you need very performant JS engines and faster computers. They don't see why you want
to run nodejs on legacy devices, especially not on very very old retro computers like an Amiga ;).
The problem with V8 is that it's
jitting to native object code; so unless you've got a backend
for that, it won't run on your platform.
I'm a bit surprised there isn't a fallback to either a
portable p-code or just straight-up interpreter.
Btw: would SBBS compile and work on M68K Linux?
Re: enigma on M68K linux
By: vorlon to Digital Man on Thu Jan 19 2023 12:03 pm
Btw: would SBBS compile and work on M68K Linux?
The chance of that might increase if there is already a Spider Monkey (Javascript Environment) available on M68K?
Which SpiderMonkey version is required? Wiki says 1.8.5 for 3.16 IIRC. Older versions are in Debian, newer versions don't build on m68k AFAIK.
Re: enigma on M68K linux
By: Oli to deon on Fri Jan 20 2023 04:20 pm
Which SpiderMonkey version is required? Wiki says 1.8.5 for 3.16
IIRC. Older versions are in Debian, newer versions don't build on
m68k AFAIK.
I think 1.8.5 IIRC.
I've read that some or all ARM chips can be switched to work in
either mode.
In fact, many of them can select at right-time, by setting
a bit in a control register. It can even vary based on the
target of a branch.
On 19 Jan 2023 at 12:03p, vorlon pondered and said...
Btw: would SBBS compile and work on M68K Linux?
I don't see why it wouldn't, provided you can find a recent
enough OS and toolchain. The problem with V8 is that it's
jitting to native object code; so unless you've got a backend
for that, it won't run on your platform
I'm glad you did. I was not aware that nodejs / V8 is so damn picky
about the CPU. I thought it would compile on any Linux / BSD. But unfortunately that is the way the web devs / companies are heading for
They don't see why you want to run nodejs on legacy devices, especially
not on very very old retro computers like an Amiga ;).
Btw: would SBBS compile and work on M68K Linux?
The chance of that might increase if there is already a Spider Monkey (Javascript Environment) available on M68K?
Hello Digital Man!
I've read that some or all ARM chips can be switched to work in
either mode.
Yeah, MIPS processors are like that too, but while in my experience
most ARM systems run little-endian, most MIPS systems run big-endian.
And it catches many people out... #-0)
Btw: would SBBS compile and work on M68K Linux?
All PPC, most MIPS and some ARM systems are big-endian.
Believe it or not, LE PPC exists!
The chance of that might increase if there is already a Spider Monkey (Javascript Environment) available on M68K?
Which SpiderMonkey version is required? Wiki says 1.8.5 for 3.16 IIRC. Older versions are in Debian, newer versions don't build on m68k AFAIK.
I've read that some or all ARM chips can be switched to work in
either mode.
In fact, many of them can select at right-time, by setting
a bit in a control register. It can even vary based on the
target of a branch.
That's what I read, but it didn't say what model/version...
In fact, many of them can select at right-time, by setting
a bit in a control register. It can even vary based on the
target of a branch.
That's what I read, but it didn't say what model/version...
On 19 Jan 2023 at 12:03p, vorlon pondered and said...
Btw: would SBBS compile and work on M68K Linux?
I don't see why it wouldn't, provided you can find a recent
enough OS and toolchain. The problem with V8 is that it's
jitting to native object code; so unless you've got a backend
for that, it won't run on your platform
I'm running the following, and as others have now posted java/javascript is the limiting factor now.
Linux m68k 6.1.0-1-m68k #1 Debian 6.1.4-1 (2023-01-07) m68k GNU/Linux "Debian GNU/Linux bookworm/sid"
Believe it or not, LE PPC exists!
So I hear! :-)
Is there a modern M68K system available (to buy) that'll run a
modern linux?
Btw: would SBBS compile and work on M68K Linux?
Certainly not as-is (we don't fully support any big endian targets
today). Is there a modern M68K system available (to buy) that'll run a modern linux?
Emu68 (the one for the PiStorm) is using the big-endian mode for it's
m68k emulation.
Linux m68k 6.1.0-1-m68k #1 Debian 6.1.4-1 (2023-01-07) m68k
GNU/Linux "Debian GNU/Linux bookworm/sid"
That's a pretty recent Linux, all right. I don't see why
the C++ bits wouldn't compile, but Digital Man would obviously
know a lot more than me about this.
Real hardware? There are some FPGA solutions and a bare metal emulator
on Raspberry Pi (Emu68, PiStorm). I doubt that they are a good
solution for running Linux.
The java bits would be the issue, and the Bit-wise of the code in Sync.
The java bits would be the issue, and the Bit-wise of the code in
Sync.
Synchronet uses Java? Or do you mean finding a suitable JavaScript
engine? Those two are rather different. :-)
I thought someone said that SpiderMonkey 1.8.5 was in the Debian
package repos for 68k Linux?
I thought someone said that SpiderMonkey 1.8.5 was in the Debian package repos for 68k Linux?
I said that, but I was wrong.
Ah. Too bad. I wonder how hard it would be to get it
to compile.
Ah. Too bad. I wonder how hard it would be to get it
to compile.
About this hard (This is the show stopper):
[snip]
jsutil.h:120:81: error: size -1 of array js_static_assert61 is negative 120 | typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
425 | JS_STATIC_ASSERT(sizeof(StackSegment) % sizeof(Value) == 0);
Ah. Too bad. I wonder how hard it would be to get it
to compile.
About this hard (This is the show stopper):
make[4]: Entering directory '/home/vk3heg/sbbs/repo/3rdp/src/mozjs/js-1.8.5/js/src'
jsoplengen.cpp
jsanalyze.cpp
In file included from jsval.h:48,
from jspubtd.h:47,
from jsprvtd.h:57,
from jscntxt.h:55,
from jsanalyze.h:45,
from jsanalyze.cpp:40:
jsutil.h:120:81: error: size -1 of array js_static_assert61 is negative
120 | typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
|
Ah. Too bad. I wonder how hard it would be to get it
to compile.
About this hard (This is the show stopper):
make[4]: Entering directory
120 | typedef int JS_STATIC_ASSERT_GLUE(js_static_assert, __COUNTER__)[(cond) ? 1 : -1]
Just use the libmozjs-1.8.5-dev package (or similar) that's included
with the distro (if there is one), rather than trying to use/build the
one included in the Synchronet git repo.
Just use the libmozjs-1.8.5-dev package (or similar) that's included
with the distro (if there is one), rather than trying to use/build the
one included in the Synchronet git repo.
There is none.... and this machhine is uptodate as of today...
vk3heg@m68k:~/talisman$ sudo apt-get install libmozjs-1.8.5-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package libmozjs-1.8.5-devE:
Couldn't find any package by glob 'libmozjs-1.8.5-dev'
E: Couldn't find any package by regex 'libmozjs-1.8.5-dev'
Sysop: | CyberNix |
---|---|
Location: | London, UK |
Users: | 22 |
Nodes: | 10 (0 / 10) |
Uptime: | 06:44:47 |
Calls: | 892 |
Files: | 4,421 |
Messages: | 666,836 |