From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 26 16:43:18 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5DB716A4CE for ; Tue, 26 Apr 2005 16:43:18 +0000 (GMT) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EB4443D3F for ; Tue, 26 Apr 2005 16:43:18 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.3/8.13.1) with ESMTP id j3QGhIhG060242; Tue, 26 Apr 2005 09:43:18 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200504261643.j3QGhIhG060242@gate.bitblocks.com> To: Ron Chen In-reply-to: Your message of "Sun, 24 Apr 2005 22:50:16 PDT." <20050425055016.56609.qmail@web41303.mail.yahoo.com> Date: Tue, 26 Apr 2005 09:43:17 -0700 From: Bakul Shah cc: freebsd-hackers@freebsd.org Subject: Re: C-style expression processing... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 16:43:19 -0000 > I am trying to add a new feature in Gridengine > (free/opensource) to support ex-LSF users - there are > more and more LSF users migrating to Gridengine), and > some requested this one: > > In LSF, a user can specify from the command line the > resource requirements of a batch job: > > (mem >= 100 || pg < 200.0) > > Where mem and pg are variables (they changes in time, > and the master cluster scheduler has the most > up-to-date information). And what I need is to find > out whether the expression is true or not. > > My question is, is there an expression processing > library that can handle complex equations easily? See http://www.bitblocks.com/src/expr BSD style copyright. README has some notes to help you turn it into what you want.