On Thursday, April 24, 2014 10:38:18 AM UTC-4, Bill Gunshannon wrote:
> In article <
brr1vp...@mid.individual.net>,
>
> "Pete Dashwood" <
dash...@removethis.enternet.co.nz> writes:
>
> >
bwmt...@gmail.com wrote:
>
> >> On Wednesday, April 23, 2014 5:47:12 AM UTC-4, Pete Dashwood wrote:
>
> >>>
>
> > <snip>
>
> >
>
> >>>> Oh, and for being old, COBOL is way behind on just about every
>
> >>>
>
> >>>> internet front. We can, and should, try to change that now.
>
> >>>
>
> >>>
>
> >>>
>
> >>> I think "should" is a bit strong. It requires me to ask: Why?
>
> >>>
>
> >>>
>
> >>>
>
> >>> Are you going to develop for web servers, phones, pads, and mobile
>
> >>> devices
>
> >>>
>
> >>> in COBOL?
>
> >>
>
> >> Yes.
>
> >>
>
> >
>
> >>> Whilst I agree this is (or can be made...) possible, I have to ask:
>
> >>> Why?
>
> >>>
>
> >>
>
> >> Why not?
>
> >
>
> > Because there is already a better mousetrap and the wheel doesn't need
>
> > re-inventing, basically.
>
>
>
> Except for those caes where there is existing COBOL code that is not going
>
> away and could use cleaner, more efficient ways to interface with the
>
> outside world.
Building something that will assist some, I hope. Pretty easy to put old reports on the web, and the potential for this Fossil SCM inspired project is, as yet, undiscovered.
I'm up to explain any of my particular brand of nerd speak Peter, and apologies for a lot of the domain specific speech. Big domain though, POSIX.
>
>
>
> So then, are you saying that IBM COBOL that uses calls to CICS is not
>
> really COBOL? Seems it has been accepted readily by the COBOL community
>
> and probably makes up a major part of the massive existing COBOL base
>
> out there.
>
>
>
> >
>
> > Nevertheless, for those who are prepared to do some homework and learn about
>
> > the facilities it provides, it may well be a route forward. However, it
>
> > seems to me that the people who are prepared to do that, can do it without
>
> > COBOL and that was why I asked: Why?
Peter,
Ummm, why toss 50 years of built up assets? Shiny new? Why? When the existing assets can play in the fields of today, just like the 12,000 other systems being put to entertaining use as we speak. (I say entertaining on purpose).
I'll lay down bets with future nerd-cred that COBOL outlasts
IBM, .NET, Microsoft; or at the least, it'll outlast me, and after that I won't really care. :-)
>
>
>
> Because all kinds of COBOL is still out there. Even with strong desires
>
> to re-write it in "a more modern langauge" it is often found to be untenable
>
> for a number of reasons. I have done CGI in COBOL. Works really well.
>
> And is a damn sight easier to maintain than the PHP it was intended to
>
> replace. Many places with large COBOL backends are currently writing
>
> "wrappers" in things like Java and PHP to make the data web accessable.
>
> IBM put Web hooks in CICS. A more general impementation of something
>
> like this could make Open COBOL much more commercially viable than I
>
> expect you are willing to accept.
Bill,
I think so too, but freedom is more a concern for most of us GNU maintainers, where one of the freedoms is commercial viability, but it only one of the aspects of freedom.
Peter,
(And all; this is with a smiley, as are all my posts, and I'll admit to not really being in sync with google's take on usenet. I'm getting a little lost as to where to respond to things while keeping context. Please excuse if any of this sounds like fightin' words, it's never the intent).
I see it as
Live free and die trying, or Live easy, and die pwned.
>
>
>
> >
>
> >>
>
> >>>
>
> >>>
>
> >>> Everything needed to do this is available right now and for free.
>
> >>> (C#, XAML,
>
> >>>
>
> >>> Javascript, CSS, JSON)
>
> >>
>
> >> And COBOL is free now too...
>
> >
>
> > Yes, it is, thanks to guys like you and Roger and the others who indulged
>
> > their desire to make it so.
>
> >
>
> > I don't think anyone at Micro Focus or Fujitsu is losing sleep over GNU
>
> > COBOL at the moment, though.
Peter,
I like to play nice with vendors. They deserve mention for some great products.
>
>
>
> At the moment, probably not. But they should be.
Bill,
Probably are. "Are" is the wrong word. Losing sleep? I'm assuming day to day workloads keep everyone busy. Ignoring developments? I'm assuming some day to day workloads include being diligent and watchful. GNU Cobol is a freed system, with lots and lots of COBOL internals exposed for anyone to learn from. That can't hurt the practitioners.
The bison -g graph is fascinating.
Just in case; Bison (together with Flex) perform the lexical and semantic analysis phases of the compiler build chain. So, the bison pass figures out that PROCEDURE is the start of the code section, sometimes, but part of a SORT subclause in context. Flex is the lexical part. Putting the P with the R and the O, and C... to build up a PROCEDURE token for bison to chew on (bison is based on Yet Another Compiler Compiler, yacc).
Anyway, pre Report Writer, the graph is some 2 million edges, that's graph lines connecting source code tokens, reserved words and symbols like plus and parentheses.
Over 2 million code paths to generating COBOL binaries. That makes for a boatload of possible COBOL programs. ;-) More programmers should know about this stuff, regardless of favourite language and system of bliss.
>
>
>
> >
>
> > There is still a ways to go before the product can be viable for "industrial
>
> > strength" use (You know the facilities I would need before we could move to
>
> > it).
They'll come. Movements afoot, but it's COBOL, unstoppable turtle speed.
>
>
>
> I don't agree. As I said, the systems at my last COBOL gig from 2012 could
>
> easily be replaced with OpenCOBOL as it exists today. And, even though
>
> they were talking about replacing it when I was there, it's still there,
>
> it's still COBOL and if it changes at all it is still years down the road.
>
>
>
> >
>
> >>
>
> >> So back to mobile and new domains,
>
> >>
>
> >> cobweb. Idea based on Fossil. command line, cgi (fast), gui, tui,
>
> >> and server in a single application. Prototype was 300 lines of
>
> >> COBOL, with a plugin architecture that came "for free" with the GNU
>
> >> Cobol CALL implementation. It allows for
>
> >>
http://site.moc/reports/monthly to wrap (moded for Console, or CGI) a
>
> >> CALL "reportmodule-06" END-CALL. The sample was a Report Writer
>
> >> program, used for a Hercules mainframe emulator tutorial. Worked
>
> >> with a single external file definition tweak. cobweb uses a mapped
>
> >> linker name as reflective as you'd like it to be, or as
>
> >> inconveniently secure as it may need to be. Compiled but capable of
>
> >> on the fly replacement of RESTful targets or query parsers.
>
> >
>
> > Yes... quite so.... Hang on while I find my Swahili dictionary... :-)
>
cobweb, made up name for a COBOL web engine, based on Fossil SCM
Fossil SCM, a distributed software management system. Designed by Dr. Richard Hipp, author of SQLite. Very well planned and implemented piece of technology.
cgi, http Common Gateway Interface
fast cgi, preloads and loops the process avoiding process starts for each request. Very efficient for heavy hit pages.
gui, Graphical User Interface, currently for GNU Cobol, that is GTK+ based.
tui, Terminal User Interface, SCREEN SECTION and extended ACCEPT/DISPLAY. tui sucks with the web currently, so best avoided. Getting at stdscr is too tricky. That may change someday, with HTML5 properties attached to the SCREEN definitions, and a redirect to stdout when appropriate for the web.
Hercules, is a System 390 emulator, but the hobby OS is MVS from 1970. Works pretty well, once a 3270 terminal emulator is attached. COBOL, ALGOL, 360 assembler (370? I only ever play with the UCOB cobclg JCL streams (clg, compile-link-go)), and great huge, many Kilobyte, working sets.
server, in this context is libmicrohttp, an embedded http server, other choices are available.
ummm, not sure what other foreign nerd speak is at play here. Reflective link names are run-time link library names mapped to human friendly RESTful (REpresentational State Transfer) strings. I always just think url-shortener, but RESTful is quite a bit deeper web technology than that, and COBOL is quite happy in the space.
If there are other acronyms I use without thinking, please feel free to ask for clarification. I get pretty excited discussing the potentials of the COBOL and POSIX mix, and my particular brand of nerd speak slips out.
> >
>
> >
>
> >>
>
> >> Now part of Canonical's Juju Charm demonstrations. In the cloud.
>
> >>
>
> >> Part of that 300 lines was a GTK interface, simple, a calendar, just
>
> >> to prove the data passing, and to work around lack of COBOL's general
>
> >> inability to generate subprograms that have void return signatures.
>
> >> There is no PROCEDURE DIVISION RETURNING OMITTED (yet).
>
> >> meandering...
>
> >>
>
> >> So, a little layer of C is added, not a biggy in terms of the
>
> >> tectonics and linkage, just add a .c file to the cobc command line.
>
> >> voidcall.c is a two liner that wraps COBOL subprograms so that they
>
> >> can take part in callbacks to and from GTK.
>
> >
>
> > This is a foreign world to me (and, I suspect, to many others...)
>
Nope, not foreign. It's the internet.
> >
>
> > I can't relate to it unless I make a considerable effort to leave the world
>
> > I know and spend time in this one.
>
Yep. The computing field is so vast now, that no one, (no one), is going to see it all, let alone program in it.
> >
>
> > If I were to do that I would want some reward for doing so. I'm too old to
>
> > go exploring just because I like adventure... :-)
Nope. No you are not.
>
> >
>
> > The reward being offered is that I can use COBOL to program my phone... (but
>
> > I need to go back to using command lines and parameters and low level
>
> > knowledge of all kinds of packages and libraries and, while I COULD do that,
>
> > I'd really rather not...)
>
> >
>
> > I already moved on from COBOL and don't need it any more.
Then COBOL may sneak up behind you. :-)
>
>
>
> We all know that. But lots of people have not and are not going to.
>
> What I see Brian, et al. doing is adding functionality that the COBOL
>
> world can actually use. As opposed to the OO stuff that no one wanted
>
> anyway.
Well, some want it, find it blissful, and we'll try and get those features in. FUNCTION-ID was a big step and still needs a little shaking out. The stack frames are fairly complicated. Now with the C++ emitter, turtle steps, sometimes unnoticeable day over day turtle steps.
>
>
>
> >
>
> > (I'd still use GNU COBOL in my business because our clients are still using
>
> > COBOL, but I don't personally use it any more and all of our software
>
> > development is now in C#.)
I'm a fan of GNU Cobol for hobbying, REBOL for interactive brain dumping, C for work (building GNU/Linux systems for in room hotel use)
I find C# to be a path to pwned (slang for owned, based on a typo of own to pwn from some internet meme generating day), but that's me. It's a good design, and looks to be easy to wield, but so is Python, and REBOL, and Perl, and Vala, and D, and gforth and ..., and from where I'm sitting, COBOL acts as hub to all of it. Master of all it surveys, embedding engines as it needs, and controlling the show. As the universe should be (and will be, once the counter hits 42).
COBOL can wield huge data sets, passing them back and forth to things like ROOT/CINT the framework used for high energy particle physics visualization and analysis. COBOL links directly to CINT, the C++ interpreter part of ROOT. I'd like to see it take part in a search for the super novae that exploded, many billion of years ago, splattering all the higher order, life sustaining, elements we enjoy here on good old earth (like gold, life sustaining gold). We should find where in space that star was, and send it a rocket thank you note. A COBOL managed rocket if needs warrant, or at least a picture of Admiral Grace Hopper along with the thanks.
(By the way, I've been told that the galaxy has rotated completely, more than once, since the life element source exploded (if it is indeed, just one source), and it may be like looking for a molecule of water in a moving river. Well, I think COBOL is up for the job, with CERN's high energy physics teams, and it would be respectful to start the search calculations soon) ;-)
>
> >
>
> > I already have excellent (free) tools that let me program my phone should I
>
> > so desire. And I don't have to leave my comfort zone to use them.
>
> >
>
> > That comes back to my "Why?"
>
> >
>
>
>
> Because you see only a world devoid of COBOL, you would probably never
>
> understand anyway.
>
>
>
> >
>
> >
>
> >
>
> >>
>
> >> Application programmers need only worry about COBOL if so desired.
>
> >> But it's a lot more fun embedding the JSON (done - using FUNCTION-ID,
>
> >> code can read as
>
> >>
>
> >> MOVE load-json(read-url("
http://site.moc/rest/thing", curl-status),
>
> >> json-status) TO json-block
>
> >
>
> > That's quite cool... :-)
>
> >
>
> > But having the IDE do it for me is even cooler...
A COBOL global FUNCTION and PROGRAM repository is being built, and will be published for any and all to peruse, use, reject, as needs warrant. As I stated, COBOL is so far behind in publicly available power tools. This is not a fault of COBOL, but a side effect of the domain of strength. The power tools are powering the world, and aren't for hobbyist consumption. Completely fair and reasonable. That is changing, and the public COBOL source code pile will grow and turtle on up the hill, making the next job easier, more flexible.
Along with the surprises, like GDK (low level graphics engine part of the GTK gui system) and the HTML5, websocket layer in Broadway. Being C application binary interface, GNU Cobol is on a level playing field with this development environment.
Yep, way too much fun. Playing with MathGL tonight, plotting.
>
>
>
> Is that the same NOBODY that uses COBOL today?
>
>
>
> >
>
> > That's why I support what you (plural) are doing and give all of you
>
> > respect.
Again, yep Peter, there is some really good work going on, and a fair amount of flailing of arms. ;-)
>
> >
>
> >>
>
> >>>
>
> >>>
>
> >>>
>
> >>> (Given they are the same guys who rejected OO COBOL, good luck with
>
> >>> that...)
>
> >>
>
> >> Thanks. :-)
>
> >>
>
> >> But deep down, I reject most OO too.
>
>
>
> A man after my own heart!!!
>
>
>
> >> I prefer thinking in stacks,
>
> >> and addresses and contents of addresses. A zebra is not a zebra
>
> >> inside RAM but it's a pointer to an address that when jumped to,
>
> >> exhibits conceptual zebra behaviour, by changing the state of some
>
> >> electronics, manipulating a stack frame and coming back to the
>
> >> address it is supposed to.
>
> >
>
> > We already discussed world views.
>
> >
>
> > As long as we both agree it is a zebra, we are on safe ground.
>
Nothing is safe Peter. :-) We'll likely miscommunicate a few more times, the belief system bias filters built into human brains being what they are.
I'm all for that sentiment. Nice.
Nope, not the intent at all. The core GNU Cobol compiler source code is Windows aware, and nothing goes in unless there is Windows runtime support. I'm just not the guy to write up instructions on how to install a compiler that uses a native C compiler on Windows, other people will do that. An INNO installer is making the rounds, MinGW (MINimum GNU on Windows), but the project does need, and will get, an msi file someday for Control panel access to install/and uninstall, with appropriate settings for Visual Studio use. Another turtle will have to carry that load up the hill, and I have no doubt that someone will. Regardless of motive, most times, computers are a lot of fun, highly engaging and entertaining, even when serious time sensitive work is at hand. (Well, during a time crisis, maybe exciting would be a better term than entertaining). Windows support is another excuse to say turtle. Sorry. ;-)
>
>
>
> Most of the COBOL out there doesn't run under Windows now. All GNU COBOL
>
> needs to do is match the current COBOL environment in order to become
>
> commercially viable. And, considering where most of it is running today,
>
> they already are.
Bill?, (I'm now deep lost as to who owns what indentation. Sorry if wrong.)
Sometimes, yep, I hear about the odd, bumpy to start, then successful ports, and haven't heard any yelling or quit rage. It's hard to install under some setups, but we are progressing, as each platform gets a build, ... one down, more to go.
Usually the COBOL port is no worse than any port from compiler to compiler would be. Extensions can be problems, standard COBOL will not be. The stories I've heard are limited in number, but rarely negative, (never personally read or heard, but I'm sure someone has cussed and cursed).
>
>
>
> >
>
> >>
>
> >> I believe, as in believe, we'd be better off in GNU/Linux space and
>
> >> coding to POSIX. I'm probably going to enter and exit a death bed
>
> >> believing that.
>
> >
>
> > I don't think you are wrong.
>
> >>
>
> >> I'll also opine, that both beliefs are sound and right, the spheres
>
> >> of influence separate when need be and intersecting when need be.
>
> >> Both viable (along with other spheres) and capable of self supporting
>
> >> spans of relevance with interested and engaged practitioners.
>
> >>
>
> >> I've studied quite a few programming environments, and have come to
>
> >> the conclusion that none are best.
>
> >
>
> > I agree. There are some environments that meet your defined criteria for
>
> > specifc developments, better than others.
>
> >
>
> >>All are good, some excel in some
>
> >> areas, some lag. I've also come to the conclusion that if you have C
>
> >> you can glue any other A and B together with any other X,Y,Z, for the
>
> >> better, approaching best.
>
> >
>
> > Yes, I see a resurgence in C (largely driven by Acadaemia) and I understand
>
> > why it is happening.
>
> >
>
> > But, as I noted elsewhere, this is at a lower level than most people really
>
> > want to work.
Disagree there, Peter. Look at StackOverflow, young (and old) professionals are asking and answering some pretty complex questions, with involved solutions, and most responses are "thanks for the sharing, that helped"
Yes there are questions that look unprofessional and trivial, but everyone started new and unaware.
Are the masses coding in COBOL? Ummm, 600? questions out of 7 million (7?) on the site. So, on StackOverflow, the answer in no. But I don't think internet era programmers are afraid of low level digital thinking, along with the higher level conceptual purpose of the particular data structure.
As Joel on Software said, huge boons in productivity can be had with managed memory. C is tricky, without doubt. COBOL can be tricky, but doesn't have to be; working storage can be laid out, fixed. But it is going to be an issue with GNU Cobol and foreign interfaces, at the C application binary layer. There are memory management issues, burdened on the interface developer. And we don't have a critical mass of helper layers written and available yet. Can I say turtle? without a usenet drumming by the crowds?
>
> >
>
> > I enjoy using Visual Studio to write C#, every bit as much as I enjoyed
>
> > writing COBOL in mainframe and PC environments for around 30 years. My
>
> > knowledge is expanding and that empowers me to do more in less time, it is
>
> > very satisfying. The original COBOL SQL DAL development for the PRIMA
>
> > Migration Toolset took a bit over 2 years to design and implement; the new
>
> > C# LINQ DAL is taking around 4 months and I'm hoping to have it ready by mid
>
> > June...
Whereas I just found out about emacs-evil and then org-mode. Consoles and command lines are the place to be. LINQ DAL is Swahili to me, and excuse if I scanned past clues. (Although, in my hometown, growing up, we said "It's all Dutch to me", not sure why)
>
> >
>
> >
>
> >>
>
> >> For many real world problems, COBOL in the mix slides things up the
>
> >> curve of good. COBOL at the centre is intriguing, and worthy of
>
> >> exploration. New angles of opportunity every day.
>
> >
>
> > "COBOL" in the sense that you are using it, maybe.
>
> >
>
> > In the traditional (COBOL '85) sense... not so much.
>
>
>
> Unless you think that CICS Calls make it non-COBOL, I would definitely
>
> disagree with you. The millions and millions of lines of COBOL running
>
> serious businesses every day are very traditional COBOL. Right now they
>
> are being wrapped in other languages in order to provide pointy-clicky
>
> access for users (except maybe on CICS systems :-). It would be a vast
>
> improvement it this changed. It would definitely extend the life of
>
> COBOL far beyond my or your meager existence.
>
>
>
> bill
Cheers,
Brian