Node.js Now Runs COBOL and FORTRAN (arstechnica.com) 86
Last summer a developer created a plugin which made it possible to run snippets of COBOL code embedded in JavaScript using the Node.js interpreter. Now Slashdot reader techfilz writes: Romanian developer Bizau Ionica has engineered a software bridge called node.cobol which can execute Node.js scripts from within COBOL programs.
The link shows COBOL code executing a Node.js script that launches a Web server and creates ASCII art from a JPEG image -- in this case, Admiral Grace Hopper, who helped create COBOL in 1959. And Ars Technica points out the same developer has also built a Node.js bridge for FORTRAN.
The link shows COBOL code executing a Node.js script that launches a Web server and creates ASCII art from a JPEG image -- in this case, Admiral Grace Hopper, who helped create COBOL in 1959. And Ars Technica points out the same developer has also built a Node.js bridge for FORTRAN.
Great (Score:2)
Stop him - by any means necessary (Score:5, Funny)
He needs to be stopped before he gets round to Visual Basic.
Re: Visual Basic is an improvement over JavaScript (Score:2)
Re: (Score:1)
Almost everything is better than JavaScript. JavaScript was good enough as a light-duty scripting and glue language, which it originally was designed for in browsers.
Now people are trying to write GUI frameworks and systems software with it, which is NOT what a scripting language is meant for. Scripting languages should be using/connecting-to systems software, not implementing it.
JavaScript is the wrong tool for the job. It's only popular because it's built into browsers, not because people love it. I'm sur
Re: (Score:3)
Yeah right. Payroll NEVER makes any mistakes.
Bizau (Score:3)
Worthless (Score:5, Funny)
Re: (Score:1)
It's called Ada, not ADA! Now hand in your Geek card!
Re: (Score:2)
It's called Ada, not ADA! Now hand in your Geek card!
Actually, I think its "Ada(tm)" because I recall that the books on the orange (later grey) wall used to read "VAX Pascal; VAX BASIC; VAX C; and VAX(r) ADA(tm)".
Re: (Score:1)
Don't they use ADA a lot in military, aerospace and air line industry? When they make ADA work, the next thing any flying thing will need is a fscking insecure and crashing browser. And apps. And app developers. And app stores.
NO
Re: (Score:2)
Re: (Score:2)
Until it runs ADA it will be a toy language for hipsters.
Let me know when it runs Lisp.
Re: (Score:2)
Until it runs ADA it will be a toy language for hipsters.
Let me know when it runs Lisp.
I'll hold out for Brainfuck [wikipedia.org] (more politely known as B****fuck.)
Then again, why stop there? [wikipedia.org]
Monuments of unageing intellect in code (Score:3)
... ... ...
Monuments of unageing intellect.
Once out of nature I shall never take
My bodily form from any natural thing,
But such a form as Grecian goldsmiths make
Of hammered gold and gold enamelling
To keep a drowsy Emperor awake;
from Sailing to Byzantium by William Butler Yeats
Re: (Score:2)
No, they just wrote something that will run the GNU cobol compiler.
Re: (Score:1)
It's javascript. Humor them.
They were so eager to see if they could... (Score:5, Funny)
...they never stopped to think if they should.
Please, stop creating excuses to keep all that old FORTRAN and COBOL code around. Think of the children!
Re: (Score:1)
JavaScript belongs to the same garbage bin as COBOL and Fortran anyway. Associating these three languages together is actually a good thing. They should all die.
Re: (Score:3)
No, Javascript belongs in an entirely different bin. Javascript is an interpreted object-oriented language that makes functions a first-class datatype. The other languages were compiled, completely procedural, and at least Fortran didn’t even support recursion until the 90’s.
Re:They were so eager to see if they could... (Score:5, Informative)
I'm not sure what you mean by "were". Fortran is widely used in scientific computing. It has supported recursion since the 1970's, although it only was standardized in 1990. Fortran 200x is object oriented, supports operator overloading, and has excellent support for array and parallel computing.
Re: (Score:2)
Fine. So there’s some overlap between Fortran 200x and Javascript. Name two things in the universe that are completely disjoint (besides Creationists and honesty).
Re: (Score:2)
2) The actual facts
Re: (Score:2)
I'm not sure what you mean by "were". Fortran is widely used in scientific computing. It has supported recursion since the 1970's, although it only was standardized in 1990. Fortran 200x is object oriented, supports operator overloading, and has excellent support for array and parallel computing.
I'm not sure what you mean by "it." Just because some compiler vendors may have supported non-standard extensions that allowed recursion does not mean you can claim the language supported it in general. GP is right: Fortran, as a standard, did not support recursion until 1990. Granted, it was possible to "hack" recursion with F77 constructions [psu.edu] but that's more of a conceptual exercise than a viable practice. When it's that hard to do something in a language, you need to use a different one.
For better or for
Re: (Score:2)
Almost all C programs in existence depend on implementation-define features, so by that measure, there exist almost no C programs at all.
How? The first C standard ever came out in 1989, the firs
Re: (Score:2)
Almost all C programs in existence depend on implementation-define features, so by that measure, there exist almost no C programs at all.
What "implementation-define[d] features" do you mean, and how do "[a]lmost all C programs in in existence depend" on them?
My experience with both languages is that it is Fortran, not C, that has suffered historically from a lack of portability due to implementation-defined features.
How? The first C standard ever came out in 1989, the first Fortran standard with recursion in 1990, one year later. The first C++ standard came out in 1998, the first Fortran standard with OOP came out in 2003. And, of course, C++ still lacks many of the numerical features, parallel programming features, and multidimensional arrays found in Fortran.
That's a straw-man. You seem to think that C and C++ are the only languages and standards to be compared with Fortran.
First of all, support for recursion dates back to Algol 68. And the de facto definition of the C language was c
Re: (Score:2)
No, I simply corrected some nonsense that you and Theovon were saying.
Mostly, I think that you just don't have anything interesting to say.
Re: (Score:2)
The parallel array stuff in later Fortrans are really neat. But last time I looked, doing it explicitly yourself with MPI in FORTRAN77 was still quite a bit faster. Have compilers improved to the point where that speed difference is mostly gone?
Re: (Score:2)
Re: (Score:2)
You're thinking coarrays; that's only one of several parallel programming facilities.
Coarray performance depends on the hardware and compiler. For MPI-like setups, you can use OpenCoarrays, which simply maps coarray code into MPI code, so performance should be simila
Re: (Score:1)
Characterizing javascript as object oriented is a bit of a stretch. It's object oriented in much the same way that C is. You can do it, but the language doesn't really do much to help out.
Re: (Score:2)
Well, it's object oriented features suck, but it's really quite nice for functional programming. I'm glad to see that paradigm make such a comeback.
Re: (Score:1)
Fortran is actually faster than C at certain math-heavy algorithms. However, I have seen the LuaJIT heuristics beat both at the same heavy math stuff so these days I have replaced all my Fortran stuff with Lua. LuaJIT is nicely easy to use and very fast at everything other than string stuff, it absolutely fails at heavy string manipulation.
Re: (Score:3)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
that old FORTRAN
That old FORTRAN code works. It's been beaten to death and unit tested left and right.
Thousands of Engineering Apps are built on that FORTRAN code. Numpy is just a wrapper on it. Matlab is just a wrapper on it. Even the C tools are just wrappers.
Everything from Computational Fluid Dynamics to Finite Element Analysis to Wireless RF Modems uses the FORTRAN (even if it's not exposed as such to the end user). Modern society would grind to a halt without that FORTRAN code.
Re: (Score:2)
This technology could extend the useful many languages, it seems.
node.ada
node.apl
node.pl1
node.snobol
So I read both articles (Score:4, Insightful)
Re: (Score:1)
Ultimately all JS haters argue against third rate languages conceived in an afternoon in 1995 for simple web client prettification to hobble together crap by hipsters selling poor quality junk that nobody asked for.
Abstraction is useful when 1) it genuinely means you can stop worrying about underlying systems, rather than having exactly the same performance etc. problems to solve based on the particular implementation detail of your abstracted platform; 2) it doesn't mean you need a 2 GHz CPU to do what cou
Don't hate on JavaScript until you have tried it (Score:2)
Until you have actually tried JavaScript, don't hate on it... :-)
...because only once you've tried it will you really learn to know the meaning of hate
Problem is, having a cross-platform language & API for which the runtime is already installed on most systems - so end users with zero technical skills (you know, the ones where you ask them what operating system they're running and they say "Microsoft Office 2013") will actually be able to run your programs - is jolly useful... Sadly that language is J
But it doesn't (Score:2)
It just forwards code between runtimes/compilers and executes the separate process. You cannot run fortran or cobol unless you install GNU's implementations of them on your machine.
Re: (Score:3)
# Meet the new editor, /#
Same as the old editor...
Re: (Score:2)
Both seem to have been written : COBOL on Javascript last summer (see title), Javascript on COBOL recently (that's the piece of news, so it's not mentioned in the title).
Pfffft (Score:5, Funny)
I won't be happy until I can run COBOL in my browser under WINE through a VM running on a aliased instance of Win XP under AmigaOS.
Oh, and I want a high frame rate too.
Finally (Score:5, Funny)
About time my malware runs on payroll mainframes!
Thank the Lords of COBOL (Score:2)
Battlestar Galactica will be pleased.
Dijkstra (Score:1)