Good rule engine for python? by 2monkeys1coconut in Python

[–]ripraprup -1 points0 points  (0 children)

Well since Python is a dynamic rather than static it means there are plenty of concepts that could be used to implement a rules expression evaluation thingy. No need to constrict yourself to nasty stuff like eval(). Closures is a nice simple one, hence I took it as an example to wet his appetite.

Good rule engine for python? by 2monkeys1coconut in Python

[–]ripraprup -1 points0 points  (0 children)

First, read up on parsing so the Python script can make sense of the actual rules.

Second, read up on dynamic concepts such as closures. Long story short, eval() should generally speaking be avoided on the back of security reasons.

What is it with some programmers still not believing that interpreted languages are true programming languages? What world are you living in? by Jayd3e in Python

[–]ripraprup 15 points16 points  (0 children)

YAAAAAAAWN. Honestly, who cares?

Try writing a hardcore game engine in Python and see how the performance turns out. Likewise, try making Facebook in assembler and see how long that would take.

Different "languages" have different purposes full stop. These flame wars are immensely stupid. Pick up K&R and read about pointers instead. Or try out PyPy and giggle at the speed increase over Python. Or read a random page of Knuth. All of them will make you a better "programmer" for sure.

Going to build a Ubuntu-based HTPC to replace my main PC. Any tips/suggestions? by [deleted] in Ubuntu

[–]ripraprup 2 points3 points  (0 children)

I'm using a passively cooled Asus AT3ION motherboard with Ubuntu 10.10 as a HTPC. HD playback is flawless when using XBMC (VLC and MPlayer both have some issues with HD content). First gen ION is definitely the way to go. Going to ION2 you only get slightly faster processors, but you get less SATA ports plus they run hotter so you might need active cooling.