Thursday, June 26, 2014

Where Can I Find a Good Rulebase ?

Greetings:
[Updated 10 July 2014]
[Updated 20 July 2014]

Basically, this is a major part of Chapter Four of our new book that should be coming out the first of next year.  If you work for one of these products or companies and I have made an error, please contact me at jco@kbsc.com rather than making a comment here.  Thanks,


Shareware

-        C/C++, LISP, et. al.  Most of the early AI engines were written in List Processor (LISP) language that, while very descriptive and modular, was, nevertheless, quite slow.  There were also many that were written in languages such as BASIC, Pascal, C/C++ and even in COBOL.  However, very few of those were commercial engines.  LISP was a beautiful language (except for the over use of the parenthesis) and was the darling of most of the academia.  Nevertheless, LISP was so exceedingly slow that there were LISP machines dedicated to doing only one job; running programs in LISP.  Most of the early (and even some of the later incarnations) of the Production Systems rulebase programs were written in LISP.

-        Common LISP Reasoner : The Common Lisp Reasoner extends the Common Lisp Object System (CLOS) to incorporate a powerful rule language suitable for all kinds of reasoning tasks, vanilla XML and RDF/XML interfaces, and support for a variety of AI-related applications, such as scheduling, planning and diagnosis.  The main site is http://sourceforge.net/projects/reasoner/?source=pdlp and the download site is http://sourceforge.net/projects/reasoner/files/latest/download?source=pdlp .

-        CLIPS (C-Language Interface to Production Systems): Written mainly by Gary Riley (when he was still at NASA) it was one of the first to have book associated with just one particular RuleBased System:  Girratano and Riley, Introduction to Expert Systems.  The syntax is still OPS-style but it will run almost any Jess rulebase if the classes are re-written into C/C++ syntax.  It also has many, many FORTRAN-like subroutines because that was what NASA wanted at the time.  This can still be obtained free from http://sourceforge.net/projects/clipsrules/?source=directory.  Also available are

o   CLIPS with Lock Support: CLIPS is a forward-chaining rule-based programming language written in C that also provides procedural and object-oriented programming facilities.  CLIPS is probably one of the first implementations of a “modern-langauge” Rulebase outside of OPS environments.  It can be found at http://sourceforge.net/projects/clipswl/?source=directory  

o   CLIPSwl is a modified project based on CLIPS(C Language Integrated Production System)(https://sourceforge.net/projects/clipsrules/), a public domain open-source software tool for building expert systems. CLIPS(ver. 6.24) is unsafe when access simultaneously occurs at the same environment, because the environment data of CLIPS are not protected for simultaneous access.

We modified the CLIPS (ver. 6.24) to support lock/unlock functions in a flexible way.
CLIPSwl doesn't use complicated logic such as platform-independent mutex,
but newly defines 4 abstract functions (i.e. using function pointers) for allocating, acquiring, releasing and deallocating locks of the environment data.
Users may define their own functions that fit for their system by using their platform-dependent mutex.  My Note:  CLIPS 6.24 is significantly slower than CLIPS 6.3.

CLIPSwl also support the safe string-related functions treating the rules,
and refining the warning parts of the code when compiling with gnu g++ compiler.

o   CLIPS Editor: An editor just for CLIPS: http://sourceforge.net/projects/clipseditor/?source=directory

o   Interface to CLIPS Library: clipsmm is a C++ interface to the CLIPS libray, a C library for developing expert systems. http://sourceforge.net/projects/clipsmm/?source=directory

o   DCLIPS or OO-CLIPS: Implementation of Rete pattern-matching algorithm, with scripting language based on COOL (CLIPS Object Oriented Language): http://sourceforge.net/projects/clips-sharp/?source=directory

(Comments by Gary Riley - 20 July 2014)  It was written mainly by myself and Brian Dantes.
I think Programming Expert Systems in OPS5, http://www.amazon.com/Programming-Expert-Systems-Ops5-Addison-Wesley/dp/0201106477, predated CLIPS as the first book associated with a particular language.
I'm not sure what the "many, many FORTRAN-like subroutines" statement is referring to. Being able to integrate with languages used operationally with NASA, such as C and FORTRAN, was a key goal for CLIPS, but  having FORTRAN-like subroutines, whatever that means, was never a consideration.

 (jco) Many of the sub-routines are FORTRAN-like and seem designed for engineers.  "Seem" being the operative word.
 

-        DROOLS (Dynamic Rule Object Oriented Language System - http://drools.jboss.org ) has the distinction of being one of the few (only one of which we are aware) XML-based rulebased systems and uses Java as it’s shell.  Source code is available.  Drools uses a slightly modified version of the Rete algorithm called the Rete-OO algorithm.  This has to do with root-nodes available in XML as part of OO languages.  However, one should also remember that anything to do with XML (at the time of this writing) also has a name space problem.  Meaning that there are many times that the same name can NOT be used, even with proper name space declaration.  In 2013 Mark Proctor (Drools inventor and project lead for JBoss) changed the main algorithm to a more OO approach and he is still dealing with the consequences as of the time of this writing.

-        Intelligent Agents for LISP -∫: Lisa is a production rule system for Common Lisp, whose purpose is to provide a foundation for the development of "intelligent" applications. Lisa employs a modern CLOS implementation of Rete and is based on CLIPS and Jess.

-        Jess (Java Expert System Shell - http://herzberg.ca.sandia.gov/jess/ )  is the brainchild of Dr. Ernest Freidman-Hill of Sandia labs. Initially, Dr. Friedman-Hill did some work on optimization of the Rete algorithm and it was quite fast for its time.  However, it has not improved much over the years and, as a result, seems to be lagging behind ReteNT, OPSJ, Blaze Advisor, ODM and Drools in terms of speed.  Source code is available but there is a charge for commercial use of the product with certain export limits for used outside the USA.  Dr. Freidman-Hill maintains an email list of Jess users and is quite quick in his response time on answers to questions; sometimes within seconds, but usually within a few hours and within 24 hours the very most.

o   There is a fuzzy logic addendum for Jess that can be obtained for a nominal charge from Bob Orchard, http://www.iit.nrc.ca/IR_public/fuzzy/fuzzyJToolkit2.html .  Please contact Bob.Orchard@nrc-cnrc.gc.ca for more details on Jess Fuzzy logic.  .

-        JEOPS: Jave Extended OPS: JEOPS is a Java based forward chaining RULE ENGINE.
This Rule Engine is used to power up the business process by rules in Java Application Servers, client applications, and Servlets.  The main page is http://sourceforge.net/projects/jeops/?source=pdl and the download link is http://sourceforge.net/projects/jeops/files/latest/download?source=recommended .

-        JLisa – Intelligent Agenst for LISP: JLisa, "Java Lisp-based Intelligent Software Agents", is based on Lisa, http://lisa.sourceforge.net/, a production rule system similar to Jess. It runs in java through ABL, armed-bear Lisp.  It can be found at and the download link is http://sourceforge.net/projects/jlisa/files/latest/download?source=recommended .

-        JRule Engine : The project consists of a library based on Java Specification Request 94, release 1.1, i.e. is a java rule engine. Please refer to "Java Rule Engine API - JSR-94" document (file jsr94_spec.pdf) included in JSR-94 distribution. The main page (from IBM – NOT JRules nor ODM) is at http://sourceforge.net/projects/jruleengine/?source=pdlp and is still downloadable at http://sourceforge.net/projects/jruleengine/files/latest/download?source=files .

-        JxBRE - Light-weight Java based Business Rules Engine (BRE) that uses XML as a way to control process flow for an application in an external entity. Soon to comply to JSR 94.  The home site is http://sourceforge.net/projects/jxbre/ and the download site is http://sourceforge.net/projects/jxbre/files/latest/download .

-        NxBRE is a lightweight Business Rule Engine (aka Rule Based Engine) for the .NET platform, composed of a forward-chaining inference engine and an XML-driven flow control engine. It supports RuleML 0.9 Naf Datalog and Visio 2003 modeling.  Their home page is at http://sourceforge.net/projects/nxbre/?source=recommended but I could not find anything that said anything about the Rete Algorithm.

Commercial

-        Aion is one of the elders statesmen of the industry.  It is most designed for mainframe applications.  Wikipedia describes it as such but thier website, http://en.wikipedia.org/wiki/Cleverpath_AION_Business_Rules_Expert , tells a different story.  They have many rulebase tools and even a Java interface as well as a C/C++ interface.  Further, Aion seems to be an IBM company in disguise.  Colossus, a computer program, developed by Computer Sciences Corporation, is the insurance industry’s leading expert system for assisting adjusters in the evaluation of bodily injury claims (aka "pain and suffering"). Colossus helps adjusters reduce variance in payouts on similar bodily injury claims through objective use of industry standard rules.  Kirk Wilson and Michael Parish are award winning Aion developers who have done much to advance the use of the tool within various industries.

-        Fair Isaac Corporation “Blaze Advisor” was originally founded as Neuron Data in about 1984 with their flagship product, Nexpert, a true full-opportunistic, backward-chaining rulebased system written in C.  Later, the product moved to the OO world with C++.  With the advent of Java in 1986-87, ND developed their version of a forward-chaining system called Advisor.  The original version, like Nexpert, did not use Rete but a home-grown version of an optimizer.  Version 2, introduced as a beta product in mid-1988 and as the full-blown version in February of 1989, did use the an updated version of the Rete algorithm.  By this time, the company was already moving to become public and had replaced the original founders with IBM-type corporate figure heads. 

o   When the company went public in April of 2000, they changed the name to Blaze Software to try to move away from the Artificial Intelligence stigma and toward a more business-like approach, though how in the world a corporate name like “Blaze” was supposed to do this one can hardly imagine.  At any rate, the company was bought by Brokat, a web consulting company in Germany for $585 million straight stock swap.  All this before the six-month lock-out period expired for the original stockholders.   With the stock market already in a downward spiral, Brokat never had a chance and they eventually sold the Blaze Advisor rulebase system, along with the personnel and software, to HNC.  HNC then sold it off to Fair Isaac Corporation (FICO) where it is at this time. 

o   Commercially, the Blaze Advisor is the Cadillac of all the rulebased systems; meaning that it has all of the comforts of home but at an extremely high price.  Before the acquisition of Rules Power, which gave FICO the Rete 2, aka Rete III, algorithm, it has the worst benchmarks on Solaris systems .  However, BlazeAdvisor performed with the best of the systems (except for OPSJ) on Windows NT, Win2K, Windows XP  and Windows 7/8.  Today, it ranks #3, right behind OPSJ-ReteNT (#10 and Sparkling Logic SMARTS (#2). 

-        ILOG JRules, now IBM ODM:  ILOG originally started in Paris, France (like Neuron Data) in 1987 and opened and office in Mountain View, CA, shortly thereafter.  The company was bought by IBM in 2009 and the product name was changed to IBM ODM (Optimized Decision Manager.)  The main link is http://www-01.ibm.com/software/info/ilog/ .  Originally the breadth of the ILOG products were (shown as IBM products for the main description):
·       IBM WebSphere ILOG JRules, a business rule management system (BRMS) that enables both business and IT users to write and maintain the logic applied by applications that automatically implement decisions.
·       IBM ILOG CPLEX, optimization software for mathematical programming
·       IBM ILOG JViews, a visualization development system based on Java and supported with add-ons for Gantt charts, graphs, maps and diagrams
·       IBM ILOG Elixir component sets for Adobe AIR and Adobe Flex platforms
·       ILOG Solver was considered the market leader in commercial constraint programming software as of 2006.[1]  
  • InRule: [InRule Marketing Blurb] A Microsoft Certified Gold Partner, InRule Technology has been delivering InRule, another .NET Business Rule Management System for the Microsoft platform, since 2002.  InRule Technology helps you turn your rules into measureable IT and business results by making it easy to align the logic of core applications with ever-changing marketplace and customer needs.  InRule Technology is trusted by hundreds of organizations for mission-critical and customer-facing applications.   [There was a major meeting of InRule with the National WIC in Dallas, TX, on 21 September 2013.
-        (PST) OPSJ is the latest invention of Dr. Charles Forgy, the inventor of the Rete Algorithm in about 1989. (Forgy-79)  The Rete algorithm has been credited with making commercialization of rulebased systems possible (Girratano-98) and has since been superceded by the proprietary Rete 2 algorithm.  Dr. Forgy also laid the ground work for Rete systems with CLIPS/R2 (a C/C++ version of CLIPS that uses the Rete 2 algorithm) and with OPS/R2, a LISP-based system that uses Rete 2.  (Yes, Dr. Forgy is also one of the authors of this book.)

o   OPSJ was delivered to the world in 1998 and is, at the time of the writing of this book, at version level 6.  It is still without peer in terms of speed and smallness of footprint, meaning that the runtime engine takes only about 100KB or less.  The speed has to do with the Rete 2 algorithm that optimizes memory space required and number of objects examined.  The size has to do with the absence of any API (at this time) and that OPSJ is a superset of Java rather than just using the Java engine.
o   Since that time, in about 2010, Dr. Forgy introduced Rete-NT.  This version of the Rete Algorithm can be used with almost any forward-chaining rulebase and is 10 times faster than Rete-2 (OPSJ) or Rete-III (Blaze Advisor) when using large datasets and complex rulebase queries such as those for Homeland Security and other massive applications.

-        Pega Systems used to have an independent rulebase system but has since rolled it back into their overall product system.

-        Sparkling Logic SMARTS : These are the new kids on the block.  The company is composed mostly of former FICO VP’s, tool designer and engineers along with a smattering of  former ILOG folks.  SMARTS is actually really cool with the way the basic rules, predictive analytics, decision tables, decision trees and decision graphs all work seamlessly.  They have a thing called a “Red Pen” and “Blue Pen” – the former being the rulebase and the other being the predictive analytics part of the tool.  I would that everyone would do this so that I did not have to bring one down in order to bring up the other.  Besides all of that, SMARTS uses the Rete-NT algorithm, the latest andgreatest from Dr. Charles Forgy, and ranks in performance on very large rulesets/datasets right behind OPSJ-Rete-NT. 


 



BRMS Benchmarks - Decision Camp 2014

Greetings:

Once again we will be covering BRMS Benchmarks, this time at Decision Camp 2014 in San Jose, CA.  I covered most of the BRMS Benchmarks in a previous article (above). The new benchmarks for 2014 come from a series of benchmarks known as “NP complete” benchmarks where NP stands for Non-deterministic Polynomial-time.  We have started using these this year, (3Q2014) since we have found that Manners and/or Waltz to be either (1) easy to cheat or (2) that the benchmark fires only one or two rules over and over.  Manners is guilty on both accounts.  So, this year we have include both the Clique Problem and the Vertex Cover Problem for starters.  Later we can expand this to other NP Complete problems. 

Either of these problems can be converted to Java or C syntax but, for starters, I plan on implementing these in Drools, Jess, CLIPS, Smarts, ODM and Blaze Advisor.  That should be enough for comparisons for this year.  Dr. Forgy has been kind enough to have already provided the initial code for these two NP-Complete problems in OPS syntax that we should be able to convert to Java, C/C++ or C#.   Or BASIC for that matter.  If you would like to work on the OPS syntax, here is his suggested code for the LHS of the rules.  If you do work on it, and would like to submit your code without copyrights (except for Apache Copyrights) for the presentation (with appropriate credit, of course) then please send to me.  Thanks.

-----------
CLIQUES:
(find (size 4))
(node (number ?n1))
(node (number ?n2&:(> ?n2 ?n1)))
(edge (from ?n1) (to ?n2))
(node (number ?n3&:(> ?n3 ?n2)))
(edge (from ?n1) (to ?n3))
(edge (from ?n2) (to ?n3))
(node (number ?n4&:(> ?n4 ?n3)))
(edge (from ?n1) (to ?n4))
(edge (from ?n2) (to ?n4))
(edge (from ?n3) (to ?n4))

VERTEX COVER:
(find (size 4))
(node (number ?n1))
(node (number ?n2&:(> ?n4 ?n3)))
(node (number ?n3&:(> ?n3 ?n2)))
(node (number ?n4&:(> ?n4 ?n3)))
(NOT (edge (from ?x&~?n1&~?n2&~?n3&~?n4)))

These assume that every link between two nodes is represented by two edge objects, one for each direction.
----------

Shalom,
jco

Tuesday, June 24, 2014

"The Loved One"

Greetings:

[Updated 16 Jan 2015]

Right now I am watching (with one eye and one ear) "The Loved One" while I write this blog with the other eye and ear.  I do not multi-task very well so probably I will re-write everything later.  (A complete listing of the cast is at the end of this blog so you won't have to go look them up.  (My listing is more in order of appearance than alphabetical.)  Anyway, this rather black comedy was made way back in 1965 in B/W by MGM. Everyone (I would hope) knows the legend of Jonathan Winters who, unfortunately, died recently.  I miss him already - he was one of the greatest "du jour" comedians of the time.  I first discovered Robert Morse in "How To Succeed In Business Without Really Trying."  Another classic - but more on that in another blog.

So, when watching the movie, watch for the really cool car in one of the opening scenes when Sir Francis picks up Dennis from the airport.  (See if you can identify it then rather than later.)

Spoiler Alert!!  Go watch the movie THEN come back to my comments.  Otherwise, you will know some of the plot and what is happening.  

Anyway, Sir Francis has been working at the same studio for 31 years. Henry Glenworthy (also played by Jonathan Winters) is first seen pitching a new movie.  Sir Fancis G., of course, is still riding along on his reputation while Henry G. also runs a Pet Cemetary.  (Sound familiar yet?)

In one of the early scenes, just before finding his uncle hanging, Dennis gets a drink of milk from a really old version of a refrigerator, one of which I had in my house in Welling, UK, when I stayed there.  Not exactly the same but really close.  Sometimes we tend to forget the really nice appliances that we have in the USA - something of which we only become aware when we actually travel abroad and have to use them.  I never did get used to having a refrigerator under the counter rather than eye level.  And the freezer compart was really tiny.  Think of a "dorm fridge" for comparison, only slightly larger.

Whispering Glades is the mortuary - a really old-fashioned view of what was actually a common conception in Hollywood in those days.  It is a parody of another real-world cemetery,  Meaning, extreme opulence, or over-the-top money-poorly-spent to impress the general public. It was drawn from a real-world cemetary, Forest Lawn Memorial Park in Glendale.  But, since the movie was obviously a parody, Forest Lawn could not sue them since it was not directly compared to Forest Lawn.   I  especially liked the part about "The Blessed Reverend Wilbur Glenworthy" description given by the Whispering Glades tour guide (Tab Hunter) at the beginning.  Hilarious!  This was really cool.  I wonder if any of our present-day TV Evangelists have seen this and wondered, in their hearts, "Could I do this and get away with it?"  Being a Jew myself, it is really cool when the "Old Jew" is turned away.  You probably would not see something like that in any comedy today.  Nor the statues of the nudes (naked men and women) in any PG movie.

Aimée Thanatogenos (played by Anjanette Comer) gives Dennis a tour.  She very aptly plays the air-headed tour guide who knows only what she has been told to say.  

Librace must have given them the expression, "Marvelous!  Simply marvelous!" This still has the world-wide recognition that we use today.  He is absolutely slimy in the role and, having had to bury several of my relatives in the last few years, I could see every one of the casket sales persons in his role. 

Mr. Joyboy (Rod Steiger) is perfect as the mortician.  I have always seen him is really serious roles and is superbly cast in this role, especially when getting Sir Henry ready for burial.  When Mr. Joyboy and company get rolling, this whole thing is simply too good to pass up.


Robert Morse (Dennis Barlow - Poet and Artificial Insemination Donor)
Jonathan Winters  as Henry and Wilbur Glenworthy (Both parts)
Roddy McDowell as D. J. Junior, BMOC in the movie
Rod Steiger as Mr. Joyboy (Chief embalmer at the mortuary)
James Coburn as the US Customs inspector
Sir John Gielgud as Sir Francis Hensley (Artist, Motion Pictures, etc. - Dennis' uncle and Movie Producer)
Robert Easton - (Dusty Acres)
Robert Morley (Sir Ambrose Ambercrombie)
Librace as Mr. Starker (the casket seller)

Enjoy,
Ya'akov

D-Day Reviewed 70 Years Later

Greetings:

June 6, 1944, Zero Hours USA, 0600 UMT:  By this time 70 years ago today, the 82nd and 101st Airborne were already in the air along with their British counterparts, the British 6th Airborne.  The Path Finders had gone along several hours before to mark the landing zones.  What will follow at 0600 (midnight here in the USA) will be the largest naval armada in history that will begin the bombardment of the coast of Normandy in preparation for the landing of between 130K to 150K troops, both airborne and ground assault.  There are many, many movies made about this day:

Time Line:
  • 6/4 1300 : Ike has the men start getting ready for D-Day.  Eisenhower predicts 94% casualties.
  • 6/5 2130 : 82nd and 101st Airborne prepare to board the C-47s for Normandy.
  • 6/5 2300 Airborne are already over the English Channel
  • 6/6 0130 : Paratroopers begin landing behind Omaha and Utah Beaches.  The Airborne units lost over 60 C-47s along with most of the men in the planes that morning due to AA fire.  
  • 6/6 0300 : Initial assault was loaded onto the LC (Landing Craft) from the troop carriers 
  • 6/6 0200 : 5,000 naval vessels move from the UK to Normandy.  This is the largest armada that the world has ever seen.  Over 600,000 men along with the associated tanks, jeeps, mortars, field rifles and trucks are on the way.
  •  6/6 0430 : 115th Reg, 29th Inf Div landing to knock out the big 88mm guns on the beach
  • 6/6 0630 : All forces are landed along a 60-mile front.  The USA landed over 314,000 men on the beach during the first 24 - 48 hours.  Quite an accomplishment for LC that carried on about 20 total men at one time.
  • 6/6 0650 : Rangers land at cliffs of Pointe du Hoc to take out the 88mm guns on the beach
  • 6/6 0830 : Field Marshall Rommel was still at home according to his son wondering if this was the real thing or whether it was just a fake attack since the main attack was expected at Pas de Calais up north of Normandy.  Pas de Calais was the closest point between England and France.
  • 6/6 0900 : Field Marshall Rommel calls for his car to go to Normandy.
  • 6/6 0930 : The beaches are declared as "secured" by the forces.
 Films
Personally, I highly recommend Band of Brothers, The Longest Day and Saving Private Ryan as being some of the more realistic, along with Stalingrad (1993) and Das Boot..  After that, maybe The Big Red One and/or Le Bataillon du ciel.  The best "first" film on D-Day was "The Longest Day" and starred, at the time, everyone who was anyone in Hollywood.  Regardless, the British landed 314K men while the USA landed another 314K men.  All with one goal, to be first to Berlin.  But, that job was left to the Russians because Ike did not want to lose his men in the street battles that would follow and the Russians really wanted Berlin.  After all, the Russians lost more than 20 MILLION people due to WW II.

Anway, shortly, about midnight here, at 0600 GMT, the main battle was started.  There were a lot of politicians there on June 6, 2014, to memorialize the event; most whom have never seen combat - maybe none.  Most have never served in the military, including our own President.  Sad but true.

So, for the D-Day weekend, or any other time, there are your movies.  And you might want to throw in "Kelly's Heroes" and a few others just for good measure.  Remember those who gave all for the rest of the world and eventually defeated the German Nazi strangle-hold on Europe.

Shalom
Yaakov

Friday, June 20, 2014

iPhone, iCloud and Macs

Greetings:

I had a bit of a problem the other day with my iPhone not getting the updates from what I posted to My Calendar on my Mac.  When I accepted an appointment, it went to my Mac but NOT to my iPhone during a subsequent "synch" operation.  So, I called my favorite Mac Geeek, Chelanie Israel in Dallas, aka, Miss Mac.  True.  Most of my problems were with "Dr Appt" and "Webinars" that were not going to my phone to remind me when I was out of the office.  Here was her advice:

"You can click on the 'Dr Appt' On My Mac and go to File -> Export Calendar. It will create and ics file. Put it on your desktop or some directory where you can get to it easily. Then import it and put it into Dr Appt on iCloud. Then unclick and hide the On My Mac calendars and don’t use them, so everything syncs. You’ll want to do the same thing with your Webinars. Looks like you will want to keep the some other events click from On My Mac or move them to the iCloud."

And, voila!  Everything is there on my iPhone the next time that I synched up.  Hope this helps some of you out there if you are also having problems with Calendar.

Ya'akov

Thursday, June 5, 2014

70 Years Ago Today - Part 4 - June 5 0400 GMT

Greetings:

By this time, 70 years ago today, the 82nd and 101st Airborne were already in the air along with their British counterparts, the British 6th Airborne.  The Path Finders had gone along several hours before to mark the landing zones.  What will follow at 0600 (midnight here in the USA) will be the largest naval armada in history that will begin the bombardment of the coast of Normandy in preparation for the landing of between 130K to 150K troops, both airborne and ground assault.  There are many, many movies made about this day:

Films
Personally, I highly recommend Band of Brothers, The Longest Day and Saving Private Ryan as being some of the more realistic.  After that, maybe The Big Red One and/or Le Bataillon du ciel.  The best "first" film on D-Day was "The Longest Day" and starred, at the time, everyone who was anyone in Hollywood.  Regardless, the British landed 314K men while the USA landed another 314K men.  All with one goal, to be first to Berlin.  But, that job was left to the Russians because Ike did not want to lose his men in the street battles that would follow and the Russians really wanted Berlin.  After all, the Russians lost more than 20 MILLION people due to WW II.

Anway, shortly, about midnight here, at 0600 GMT, the main battle was started.  There will be a lot of politicians there tomorrow, most whom have never seen combat - maybe none.  Most have never served in the military, including our own President.  Sad but true.

So, for the weekend, there are your movies.  And you might want to throw in "Kelly's Heroes" and a few others just for good measure.  Remember those who gave all for the rest of the world and eventually defeated the German Nazi strangle-hold on Europe.

Shalom
Yaakov

Friday, May 23, 2014

70 Years Ago Today - Part 3 - May 23, 1944

Greetings:

With this being Memorial Day in the USA, I thought it would be appropriate to bring us up to date on what was happening 70 years ago today in the UK.  D-Day, The Normanday Invasion of France by the Allied Expeditionary Forces, is only two weeks away now - but the "ground pounders" are still in training and/or holding patterns; just getting read and more ready and more ready to "jump off" across the English Channel to France.

Down south, in Italy, we are already fighting a desperate war against the Nazis.  They have a place called Cassino, an old fortress that is now a monastery that totally resists any kind of aerial bombardment.  So we decided (today) to go around and hit the Anzio beachead.  My dad was one of the guys in the First Special Service Forces (precursor to the Green Berets) who were being pinned down.  See the movie "Devil's Brigade" to catch up on what they did there.  My Dad says that it is fairly accurate but still a lot of Hollywood.  (Mostly it does not show the true horror of war.)  The following is a quote from General Mark Clark who was in charge of this maneuver:

On 22 May I moved permanently into the forward echelon of my head-quarters at Anzio in preparation for the break-out. . . . Almost every inch of space at Anzio was crowded with men, guns and ammunition in preparation for the attack. Any time the enemy fired a shell in our direction it was almost certain to hit something, but we had taken what precautions were possible, and most of our supplies were protected by mounds of earth.
Before dawn on the morning of 23 May I went with Truscott to a forward observation post on the Anzio front, where just before six o’clock some five thousand pieces of artillery opened up on the enemy, whose positions were concealed by a morning haze.
The smoke and haze hid our movements, but in the next hour or so we could hear our tanks moving forward to the attack, and there was a dull rumble of aircraft overhead as bombers began to pour their bombs on the German positions. The beleaguered Anzio garrison was about to break out, with the town of Cisterna their first objective.
The timing of the attack from Anzio again caught the enemy off-guard. As the artillery fire suddenly ended our tanks drove through the smoke, followed by swarms of infantry that caught the enemy outposts unprepared. Some of the Germans in dugouts had to be dragged out with only part of their clothes on, completely unready for battle.
Our artillery had previously been aimed at specific enemy centres, which were heavily shelled, but the morning haze interfered with the German artillery observation and gave us an opportunity of making considerable progress before meeting firm resistance. The Germans were never able to recover from this initial setback, and their later counter-attacks were weak and poorly organized.
 Also, lest we forget, on this day in 1943, 71 years ago today, "The Great Escape" actually happened.  This later became a great Steve McQueen movie by the same title.  This was the greatest escape in history where 76 men escaped.  All but three were recaptured.  A couple of things about the movie:  The "tunnel rat" played by Charles Bronson was actually a Canadian RCAF pilot from Toronto named Wally Floody.   Three other notable Canadian escapees were Flying Officer Hank Birkland from Spearhill, Manitoba, Gordon Kidder and Albert Wallace.  Albert is 93 and still alive today.

But, back to the UK.  I would that I were a true writer in the mold of Molly Painter Downes who wrote the following:

Living on this little island just now uncomfortably resembles living on a vast combination of an aircraft carrier, a floating dock jammed with men, and a warehouse stacked to the ceiling with material labelled “Europe.”
It’s not at all difficult for one to imagine that England’s coastline can actually be seen bulging and trembling like the walls of a Silly Symphony house in which a terrific fight is going on. The fight everybody is waiting for hasn’t started yet, but all over England, from the big cities to the tiniest hamlet, the people, at least in spirit, seem already to have begun it.
There is a curious new something in their expressions which recalls the way people looked when the blitz was on. It’s an air of responsibility, as though they had shouldered the job of being back in the civilian front line once again. It’s evident in the faces of women looking up thoughtfully from their gardens at the gliders passing overhead, in the unguarded faces of businessmen wearily catnapping on trains on their way home to all-night Home Guard duty, in the faces of everybody except the young fighting men themselves.
The troops look unfailingly cheerful and lighthearted, as though they didn’t know that anything unusual was afoot, and it is obvious that they are in wonderful physical shape. Life is reminiscent of the blitz in other ways, too, for now, as then, people are keyed up to withstand something which they have often imagined but never experienced, and there is the same element of uncertainty about what is coming.
The ordinary civilian seems far less worried, however, about possible bombs, long-distance shelling, or gas attacks than about such problems as how the dickens he is going to get to and from work if transport is seriously curtailed. It has already been announced that trains may be suddenly cancelled without warning, but there is a vague promise that motor-buses for essential workers will take their place wherever possible.
Stay-at-home Britons seem resigned to the probability that their second front will consist mainly of humdrum hardships, including more inconvenience, fatigue, and doing without. The idea that London, during the invasion, will come in for heavy air attacks seems to have faded away, oddly, and there is even less worrying over any secret weapon that may be up the German sleeve for D Day.
It is plausible to lots of English that the Germans may stage a token inva- sion or series of parachute raids. This would mean that, since the Army’s attention would be engaged elsewhere, the Home Guard would be expected to take charge of the situa- tion. Already, in the country, the milk and the mail arrive late, delivered by a somewhat bleary-eyed milkman or postman who explains that he has just finished standing his watch with the all-night guard, which once more has been established.
The shadow of the second front falls across day-to-day happenings in even the smallest community. One country-dwelling lady who recently decided that she must have some urgent plumbing repairs done in her home was warned by the contractor that he and his plumber’s mates were all Home Guards. He pointed out that if anything happened (there isn’t a village in England which doesn’t proudly imag- ine that it’s all-important to the Nazis), the boys would just drop her new water tank smack on the lawn and she would be left bathless until the fighting was over.
It is often in just such a ridiculous way that English families begin to realize what it may be like to have the battle of Europe right on their doorsteps, involving not only big and historic issues but also small and homely ones like baths, trains, the morning paper, and the day’s milk.
But, I'm not and I can't so I shan't.  :-)  Anyway, today, this weekend, remember that in 1944 England had already been at war since 1939.  They have already sacrificed several hundred thousand of men to the Nazi war machine both in Europe and in Africa.  We just joined up less than three years ago (Dec 7, 1941) when the Japanese bombed Pearl Harbor, NOT because we wanted to help out our English allies.  By this time we have been fighting in Africa, Italy and all over the Pacific.  But right now, all of our attention is focused on that tiny island called Great Britain and the million-plus men getting ready to charge into certain death.

More next week.  For this week, celebrate Memorial Day, think about our troops now and then, and maybe watch "The Great Escape" because it happened 71 years ago today.

Shalom
Yaakov

Wednesday, May 7, 2014

70 Years Ago Today - Part 2

Greetings:

Location:  Normandy, France, and Southampton, England
May 23, 1944:

Arabel, the German code name for a spy in England, reported back
. . . .V BENEDICT, UNDERTAKING ARABAL 10/5 from England via FELIPE: . . . . I estimate that up to 1100 hours more than a bde. of the div. had landed. Landing of troops was continued in a similar way.
Apart from the transports which brought the landing craft I was able to see another 10 transports, which lay in the neighbourhood and were doubtless connected with the exercise. One of these transports flew the flag WHITESIGN (sic) had a remarkably large number of aerials on board and continually sent light signals with searchlights to the shore.
The exercise lasted until the 11/5.
General impression gained by the VM on the basis of what he ascertained during the exercises and former information about this division is that it is intended for action in Norway as the division is continually receiving training in mountain warfare and all its equipment points to the probability of its going into action in northern regions. Have taken all measures to continue to watch every movement of transport fleet and troops.
Benedict was a complete work of fiction by British Intelligence; they called Arabel "Garbo" and were using him as a double agent to feed false information to the Germans.  By now, the Germans were totally convinced that there was to be an attack on Norway followed by a complete invasion at Calais by Gen George Patton.  Everything about Patton and all his divisions were a complete fabrication to tie up the Panzer units formed across the channel to stop him.  All of the boats and tanks were just shells, some made from rubber, just to convince the Germans that there was indeed a complete U S Army at Dover ready to invade Calais.  They even fabricated an immense amount of coded messages back and forth - but they knew that the Germans already had "broken" this particular code.  And it worked.  Hitler did not release the Panzers from Calais until the second week of the Normandy invasion.

More to to come this year at we remember our fallen heroes in the Greatest War Ever Fought.

Shalom,
Yaakov

Wednesday, March 5, 2014

I MUST be Michael Jordan

Greetings:

Long, long ago I was watching "Numbers" on TV.  This was a TV series based on a Geek helping out the FBI.  Anyway, the Geek and his brother is outside playing basketball in the driveway.  The geek proposes a hypothesis; "I am Michael Jordan.  (Not the name he used but close enough for this story.) If I am Michael then I can get around you and score a two point basket." He does it and scores.  Ergo, he must be Michael Jordan.

His brother says, "No, that just shows that I still fall for the same old head fake that you've been using since grade school."  The Geek then explains to brother that what this demonstrates is not that the test failed, but that the hypothesis was wrong.

It actually had to do with fingerprints and a hypothesis that I had never really considered.  First, that fingerprint identification is an art form, not a science.  We don't really KNOW that no two fingerprints are alike BECAUSE we have never actually tested all 7 billion persons on the plant.  And with ten fingers (on average) per person that means comparing 7B*7B*10 fingerprints.  Mathematically, 7*10^9 * 7*10^9* 10 = around 49*10^19 fingerprint comparisons to validate this theory!  Anyway, what we have done is test a sample and "ASSUME" that the hypothesis is correct.  [I really like this show.  One of the few on TV that tries to explain logic to the masses.]

Epiphany:  How many rules are written with the same wrong hypothesis.  And how many rulebased systems, aka BRMS, are out there running faulty logic BECAUSE we, the true geeks, don't make the BA's explain in depth why that hypothesis HAS to be true and no other explanation can exist.  I can think of a couple of systems that had those problems before we came along and every time I got that "eye roll" that said, "You're a geek.  You don't understand business.  I should not have to explain this to you."

Anyway, just something to think about on a slow week- night.  :-)

Yaakov
Thanks to Diana Forgy for correcting my population calculations and my math earlier!!  :-)

Tuesday, February 4, 2014

Benchmarks: Who, What, Where When and Why?

Greetings:

A BRMS (Business Rule Management System) is, after all, a rulebased system that has evolved into what we now refer to as a Decision Manager or Business Decision Manager when applied to business systems.  Over the years we have tried to establish a set of benchmarks that will allow the users to test various systems for speed and efficiency on different, complex problems.  The two most famous tests are the Miss Manners test and the Waltz benchmark.  The original five OPS (Official Production System) benchmarks can be found at ftp://ftp.cs.utexas.edu/pub/ops5-benchmark-suite/ and will run on most any platform.  All major BRMS vendors have written the code for their particular language syntax for Miss Manners, Waltz and/or WaltzDB.  In addition, Dr. Forgy and I have written the NP Hard benchmarks for several systems.

The Miss Manners OPS benchmark originated about 15 years ago with OPS5 and CLIPS languages.  It’s a relatively simple rulebase with only eight rules that will do a depth-first search to find a solution and the program comes with a data generator.  The idea is that Miss Manners has invited 16, 32, 64 or 128 guests with various hobbies to a dinner party.  She want to seat the guests in boy-girl-boy-girl arrangement so that each guest will have someone on the left or right that has a common hobby.  Back in 1979 the Manners 128 program took 5,838.5 cpu seconds to run on a SPARC 1+.  Today, due to massive improvements in hardware, this one runs in about 1.5 seconds.  The data for Miss Manners should have X number of guests, 2 or 3 hobbies from a possibility of 5 hobbies and the guests must be equal number of male and female to be seated M-F-M-F etc.

It becomes more complex with the number of hobbies and number of guests.  The original test was written to really “stress” any rulebase but some vendors found the trick of putting a single “not” statement in one of the rules that would make it run 15 or 20 times faster.  Without that “trick” it’s a very good measure of how fast a system will run on any give platform and CPU.  Another “trick” is to re-arrange the data so that the rules will run faster because the benchmark is data-sensitive.

The Waltz OPS benchmark is another oldie but a goodie that will really stress a rulebase system because it checks to see how well the rulebase does pattern matching.  Consisting of 32 rules, it will analyze the lines of a two-dimensional drawing and label them as if they were edges in a three-dimensional object.  The Waltz benchmark also comes with a data-generator and is much harder to cheat with than the Miss Manners benchmark.  Waltz comes with a C program for generating data for any number of regions; 12, 25, 37, 50 or even 200.  UT maintains the object C files for convenience at /ops5c/lib/libops5c.a and a math library that is used with the benchmarks.  The SPARC 1+ time for Waltz-50 was 3,831.8 cpu seconds.  Today’s benchmarks are between 0.2 to 1.9 seconds at worst.

The WaltzDB OPS benchmark that, like Waltz, labels the lines in a 2D drawing in order to assign configure a 3D object.  The change is that WaltzDB can handle drawings with junctions of four or six lines while Waltz does junctions of only two or three.  WaltzDB only has 35 rules but its data sets have many, many more junctions.  WaltzDB also has its own data generator, waltzydb.c, and it also needs to be compiled.  I have run tests using 4, 8, 12, 16 and even 200 regions.  The WaltzDB 200 is the most difficult of all.  16 regions on the old SPARC 1+ took 8,033.3 cpu seconds but today it takes about 0.5 seconds.  The WaltzDB 200 takes only about 10 – 15 seconds on most systems but can take 2 seconds or less when running Rete-NT, the latest incarnation of the Rete Algorithm.

The A.R.P. OPS benchmark is program is an Aeronautical Route Planner that will plot a course across a given territory from P1 to P2 for a airplane or CRUISE missile.  There is a dataset generator that asks about 40 questions and generates a file called rav-sceneXxYxZ.dat where X, Y and Z are the 3D coordinates from the input data.  There is a sample list of questions in the README file at UT.  This benchmark is unique in that there are two files that have to be loaded, “filename”.dat and “arp-rp-makes”.  The best time for the A.R.P. benchmark on a SPARC 1+ with 10x20x30 data set was 1,220.2 cpu seconds.

The Weaver OPS benchmark is a combination of several expert systems that communicate through a common blackboard, or maybe a whiteboard today.  The “practical” application for this system is to design a VLSI (Very Large Scale Integrated) chip design, something that a chip manufacturer such as AMD or Intel face every day.  Far more detail is provided in the README file.  The best time for the Weaver benchmark on a SPARC 1+ was 1,053.7 cpu seconds.

The next two benchmarks come from a series of benchmarks known as “NP complete” benchmarks where NP stands for Non-deterministic Polynomial-time.  We have started using these this year, (1Q2014) since we have found that Manners and/or Waltz to be either 1) easy to cheat or 2) that the benchmark fires only one or two rules over and over.  Manners is guilty on both accounts.  So, this year we have include both the Clique Problem and the Vertex Cover Problem for starters.  Later we can expand this to other NP Complete problems. 

Either of these problems can be converted to Java or C syntax but, for starters, I plan on implementing these in Drools, Jess, CLIPS, Smarts, ODM and Blaze Advisor.  That should be enough for comparisons for this year.  Dr. Forgy has been kind enough to have already provided the code for these two NP-Complete problems in OPS syntax that we should be able to convert to Java, C/C++ or C#.   Or BASIC for that matter.

That pretty much covers the 5-W's of good journalistic articles.  The HOW (5W+H) part is not the most difficult.  Our plans are to provide the NP-Complete benchmarks, along with the first three UT benchmarks, for our talk at Decision Camp 2014 to be held in San Jose this November.  I hope to see many of you there since registration is, again, free thanks to Sparkling Logic and eBay.


Shalom
Yaakov

Friday, January 17, 2014

More on New Macs

Greetings, Programs:

Still playing with my new MacBookPro - quite a toy as well a super-development tool.  Things to really like about the "new and improved" MacBookPro are:
  • EMail: Seems to be improved and has the VIP feature
  • Speed: both CPU and SSHD.
  • Downloading movies is 12-15 times faster (15 minutes - not 3 hours for a 1-hour movie).
  • Hi-Res Screen (compared to older MacBookPro or other laptops)
  • Lighter Weight (and smaller / thinner)
  • 16GB of RAM vs 3GB or 4GB 
  • HDMI port standard
  • 2 - USB 3 (or USB 2) ports
  • Quad i7 Processor
  • NVIDIA GeForce GT 750M with 2GB of GDDR5 memory and automatic graphics switching
  • Good integration with Microsoft Office 
  • Full-size, back-lit keyboard
  • Much longer battery life (8-hours movie time and about 30 days - yes, days - on standby)
What do I not like?
  • Smaller screen (15" max size versus 17" in older models)
  • No 400/800 Ports for existing HDs (Extra cost for adapter to Thunderbolt ports)
  • Adapter for my older 30" Cinema Color Monitor takes up 1-USB and 1-Thunderbolt port
  • Microphones on side rather than front
  • No built-in DVD ($70 External)
  • No standard Blue-Ray Drive, etc
  • Max Resolution dropped from 3600x2500 down to 2560x1600
  • Not very many options on iMovie downloads
  • Games that come with any Mac are limited to Chess
 This is not a complete list but it should give you some idea about he new MacBookPro; some things to think about before buying one.  How can you go wrong with a new Mac?  OK, they cost more, but they come with all the goodies installed BEFORE you open the box.  For example:
  • Mail is almost ready to go and Mac guides you on setting up the EMail accounts.
  • All of the approved Mac software works as advertised.
  • iLife costs about $90 now and has great apps standard
  • iWeb page designer is an excellent design tool 
  • Calendar and your iPhone are tightly integrated
  • iPhoto and our iPhone are tightly integrated and iPhoto imports directly from cameras
  • Notes
  • XCode is a great C/C++ or Java editor
  • I have a quickly available terminal screen with great colors schemes and easily adjustable sizes 
  • Super video and audio tools available at about 1/4 the cost of other professional tools
 All in all, I suppose that the good parts outweigh the bad parts.  I think that I really like the light weight in my backpack and the regular hi-res screen on the laptop more than I dislike the missing 400/800 ports or the brain-damaged iMovie software.  If you have an existing MacBookPro with the older Core-Two-Duo processor, it is time to trade up.  If you already have an older MacBookPro with the Retina display, keep it. 

Bottom line:  Would I suggest a Mac rather than a high-end Windows machine?  Absolutely!  You can always use Windows on your MacBookPro if push comes to shove.  But why would you want to do that?  Just get the Mac version of whatever software you are using and stay away from the plethora of problems and upgrades with Windows.

Shalom
James

Thursday, January 16, 2014

BRMS Training

Greetings:

I just happened to see this on one of the LinkedIn forums that was posted about four months ago by a professional trainer with a major corporation.  Any comments?

"My clients tell me that they had done the tutorial that came with the download prior to the training. The software is easy to use. Almost everything is done by clicking some buttons. It is a good starter.
Clients tell me that the added value that training brings, is that training helps them bring disparate concepts together to form a business solution. The synthetic view of the software and the ability to use software capabilities to solve business problems and the ability to use the software capabilities to enhance business capabilities are things that cannot be put in any tutorial, eLearning and recorded web training format. For this reason, clients buy training.
"

 Shalom
James

Tuesday, January 14, 2014

Decision Camp - Part Deux

Greetings:

Decision Camp 2013 was such a screaming success that eBay and Sparkling Logic, along with Drools, Open Rules and others, have decided to do it all over again.  Decision Camp 2014 is scheduled for October 13th, 14th and 15th of 2014: Same place, same time, just a bit earlier to avoid the Holiday schedules in November.

So, why go?  Probably because of the quality of the speakers.  First, there is Dr. Charles Forgy, the person who invented the Rete Algorithm in the first place.  Then there is Carlos Seranno-Morales, the person who invented Advisor (aka, Blaze Advisor) and was the first to get a Java version of a rulebased system out into the public market place.  Then there is Kenny Shi of Pay Pal (eBay), their guru for all things rules.  And Mark Proctor, the inventor of Drools / JBoss Rules.  As always, Dr. Jacob Feldman, the inventor of Open Rules.  And, of course, Carole-Ann Matignon, the Decision Camp founder; formerly with ILOG, formerly with FICO and now the co-founder of Sparkling Logic, the New Kids on the Block of All Things Rulebased and Predictive Analytics.  If you go out to the link, http://www.decision-camp.com , you can get more details.

Now, if you want to be a speaker, the deadline for presentations is a bit aggressive: It is March 31, 2014.  Contact Carole-Ann or the web site for details about speakers.  Finally, here is the best part.  IT'S FREE !!  Right, free for attendees.  You have to pay your own hotel, flights, etc - of course.  But, the conference itself is free.  Start planning now so that you will have the time allocated.  And plan on returning on Thursday morning (or afternoon) since this is a full three-day conference and you don't want to miss out on the Wednesday afternoon and evening activities.

So, there you have it:
  • Business Rules
  • Predictive Analytics
  • Business Intelligence
  • Optimization
  • World's Greatest Rulebae/Analytics/BI/Optimization/Decison Speakers

Looking forward to another GREAT time in San Jose this fall.  Come join me.

Shalom
James C. Owen