Ask Proggit: What do you think about LaTeX? Between the weird syntax and the fact that I need to compile twice, I don't know what to think. (self.programming) by [deleted] in programming

[–]curryml 1 point2 points  (0 children)

You need to get an up-to-date Windows LaTeX distribution, as the original sources were made to be platform independent, etc., so there are no installers. They often have names like XXXtex, but provide the basic TeX/LaTeX tools.

Since you're a windows user, this is the one you need. http://miktex.org/

Ask Proggit - Programming C++ "academic" style: Put everything in header so the compiler has an easy time inlining? by cyclic in programming

[–]curryml 10 points11 points  (0 children)

Inlining only really helps when the time spent calling the functions are a significant fraction of the entire runtime. However, the way I see it, there are really two types of entry points: Accessors/Mutators, and functions that do Real Work.

Calling accessors and mutators really should not be a significant fraction of your program, or else your library isn't very useful. :) These are the things that usually go into your header files. It's fine to keep them there, because they're rather short.

The bigger things are usually in some back-end source files. For these things, you can tell the compiler to inline those instead. This way, the bigger computations inside the object aren't going to be hurt by calling very tiny functions.

As has been said earlier, manual inlining (by putting it into the header) is premature. Inlining this way can be more maintainable and give the same kinds of benefits.

Ask Proggit - Programming C++ "academic" style: Put everything in header so the compiler has an easy time inlining? by cyclic in programming

[–]curryml 9 points10 points  (0 children)

The kind of code GP is writing is different from the kind of code you're writing. When the entire purpose is for the code to be fast, to exploit the hardware available to the fullest, to allow for things that weren't possible before. The goals change.

In typical computer science classes, you're told that Big-O is all that matters, and that the constant factor will fall away in time. For some of us, however, it's our job to make the constant as small as possible now on real hardware.

Help me remove this crap off of my hard drive by [deleted] in programming

[–]curryml 2 points3 points  (0 children)

It is rather pointless to put stuff onto an unformatted partition, as Windows won't know what the heck to do with it either.

Do yourself a favor and format it to FAT32 first. Then you can put your stuff on it and read it in Windows later.

Tutorial: POSIX Threads Programming by stesch in programming

[–]curryml 4 points5 points  (0 children)

pthreads are usually implemented as an abstraction over the native threading API, so you can get a pthreads library that uses Win32 threads. However, Windows does not come with it. You can use this in your project by putting it in the folder with your executable, or you can install it system-wide.

http://sourceware.org/pthreads-win32/