Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SamJansen
Edit
PageHistory
Diff
Info
LikePages
You are viewing an old revision of this page.
View the current version
.
[SamJansen]. Me. I attend to WaikatoUniversity. I used to run DebianLinux on my home computer (along with MicrosoftWindows at times), but I am now a GentooLinux convert. I do all my programming in [Vim]; I am a programmer by trade. Programming languages I use, in order of how much I use them include: * C++ * Java * C * Perl * Any other random language I don't use much or was forced to learn like Python / Scheme / Haskell / etc. Note that the above list says little about preference. These days I spend my time working on my honours project in the WandGroup working with FreeBSD. I'm playing around with adding a new network stack to a network simulator. Information about this project can be found at [http://voodoo.cs.waikato.ac.nz/~stj2/420/]. My program, 'Memhog': C++: while(1)new int; C: #include <stdlib.h> while(1)malloc(3); From the above it is obvious the C is more verbose than C++ -- it needs an whole extra line! Note that malloc-ing 3 bytes means it looks somewhat neat as it links to the manpage. There is no other reason for the number. I would write 'Memhog' in other languages, but those damn garbage collectors get in the way. ''Actually, it should still be fairly easy - try making a global array or similar, and loop adding objects to it. There would be other ways depending on the GarbageCollector that is being used - some can't deal with self-referential loops of objects, for example.'' Agreed. However, it is often hard to be quite as terse as the C/C++ equivalent. For example, in Java the easiest way to use up all the memory is just to keep adding things into a list: public class Mem { public static void main(String args[]) { java.util.LinkedList list = new java.util.LinkedList(); while(true) list.add(new Integer(0)); } } Now, the other problem here is that in a language like Java, once the heap it full it exits rather racefully with an "Exception in thread "main" java.lang.!OutOfMemoryError". This, to put it quite frankly, is no fun. Seriously, though, what coding I do in my spare time is generally done on BungGameEngine. Some C/C++ links of note: * [wxWindows] (multi platform GUI -- like a much better MFC) * [OpenGL|http://www.opengl.org] (simple multi platform 3d graphics API) * SDL or SimpleDirectMediaLayer (decent multi platform DirectX-like library) ----- Is mentioned in the long distro wikiword SomePeopleChangeTheirDistributionsAsOftenAsOthersChangeTheirUnderpants :) Deserves kudos for being the only non-GianPerrone to mention [PASL] on a Wiki page. ----- "In my opinion, Richard Stallman wouldn't recognise terrorism if it came up and bit him on his Internet." -- Ross M. Greenberg
22 pages link to
SamJansen
:
getopt(3)
YorkStreet
C++Notes
VimHowto
SonyEricsson
Sam
IHateJava
Plan9
BungGameEngine
BzFlagCompetition
Kylix
PolymorphicTypes
MMGR
LegislatingAgainstSpam
JesseBaker
LatexMakefiles
ObjectOrientation
WandGroup
OpenBox
C++
Orkut
MakeToSCons