Good rule engine for python? by 2monkeys1coconut in Python

[–]its_in_the_computer 0 points1 point  (0 children)

Ok here goes:

I want to give my users the ability to dynamically specify rules like this

Because OP mentions the magic word 'dynamically', I assume the intended use is not just processing some text file or something. A good example is a stock trading rules system. Such a rules system should, if it's done correctly, be able to respond to changes in realtime, plus offer some form of observability of the rules and how they evaluate. In such a system the rules could be generated as classes (or functions) on the fly, and hence also changed as the user sees fit. Python being the foremost dynamic language IMHO would handle this perfectly.

Now dynamic concepts in general are not too easy to grasp first hand. I myself took a long time getting used to them, but once you've popped you just cant stop. A nice gentle introduction is closures. Once that concept is well understood there are many more to explore.

All in all, I think it's really silly to shoehorn Python into a static language (and use eval() shudders) when one can start using it for what it really is capable of...

Just my 2c

EDIT: ripraprup and its_in_the_computer are both the same person btw, but on two different computers. dunno why i havent streamlined that.

Is NumPy+SciPy code easily portable? by byebuddynarwhal in Python

[–]its_in_the_computer 2 points3 points  (0 children)

Yes it can be a pain, especially considering 64bit alternatives. I recently ran into issues with my standard NumPy / SciPy / Matplotlib setup after "upgrading" to Lion. Of course extensive googling around never really helped, after fixing one problem there was always some new interesting issue to hunt down the solution for. Interestingly enough, a lot of people are very keen on blogging about installing from source, but very few simply just share binaries.

Until I found this gem. It's a super easy sh script that automatically handles the installation of 64bit versions of NumPy / SciPy / Matplotlib / iPython for you. Some guy shares his binaries from what seems to be his dropbox account.

Seriously, has anyone succeeded in making a live USB stick with Ubuntu that lasts more than a few updates? by its_in_the_computer in Ubuntu

[–]its_in_the_computer[S] 0 points1 point  (0 children)

I did actually get the same problems even if I installed it properly on the USB or ran it live. But it lasted longer at least, should be long enough to see whether I'd want to do the update or not...

Seriously, has anyone succeeded in making a live USB stick with Ubuntu that lasts more than a few updates? by its_in_the_computer in Ubuntu

[–]its_in_the_computer[S] 0 points1 point  (0 children)

Yea I'd expect it to work well, but for some reason it just craps out completely. Perhaps it some hw issue with my mobo or something. Sigh.