• Advertisement

Barn Door

  • Content count

  • Joined

  • Last visited

Community Reputation

140 Neutral

About Barn Door

  • Rank
  1. LINQ

    Anyone have any thoughts on whether using LINQ in a game is appropriate? LINQ is basically a way of manipulating the contents of containers and data sources using a SQL like syntax.
  2. OK, I just thought that maybe the CLR could packs objects of the same type together on the heap.
  3. Sure, but then I think the cost of the cache entry can be ameliorated by not caching each integer seperately but instead collecting a related set of them and then inserting just the collection into the cache. But then I suppose that if the collection is itself a dictionary then it would be a pretty tight saving. Once this is done I might have a look for a cache profiler and see it int32 vs int16 does make a significant difference.
  4. Do you think the CLR will be smart and group int16s in one place in memory? I don't see why it would be slower. If the CPU grabs 32 bits from memory at a time then what difference does it make if you only want to use half of those bits? What I'm trying to do is store some permission values for folders in memory as a bit field because its quite expensive to work them out at the database. So obviously I want each field to use as small amount of memory as possible.
  5. Hi, If I box an int16 as a result of putting it in the asp.net cache (a hashtable) like this.. int16 i = 64; Cache["myInt16"] = i; Does this really save 2 bytes over using an int32? Cheers, BD.
  6. How do OSS developers aford to live?

    That's very interesting. This stuff makes me think of Robert Persig's theories from his book Lila. He basically says that reality can be split up into four levels - physical, biological, social and intellectual. Each layer has grown out of the layer below and takes on a life of its own but is ultimately dependent on the layer below. In addition, each layer is in conflict with the layer above and below it. (Hehe, this stuff must sound so wacky but its actually bizarely convincing.) Quote:Let's take another angle. Why are there not tons of competing private universities? If I learn from a university, why can't I teach that same knowledge in competition with the university? You're siding software with intellectual ideas which makes softare a part of the set of intellectual patterns of reality. (So OSS has nothing to do with communism which is a social pattern according to Pirsig.) When I challenge a business practice which promotes OSS I am reasoning from a social point of view and I think I'd be right in saying that such a practice is of low quality. But the social patterns here are attempting to devour the intellectual patterns. When an OSS purists challenges the practice of being secret about one's software and ideas and trying to make as much money as possible out of it then this is the intellectual level of reality trying to be free from the social level of reality. This is the more moral stance to take because patterns of intellect are at a higher level of reality than social patterns. Hence the zealots. However, ulitmately, the intellectual patterns are dependent on the social patterns. For example, if I don't run a successfuly business then I don't earn any money so I can't buy food so I starve and end up down at the physical level as a pile of dust. I think that the reason that this conflict is so alive in the software industry is because, as you point out, a copy of the product can be made virtually for free - just like an idea can be passed from one person to another at no loss to the person doing the teaching. I wonder why the music industry is so different? Music can be copied just as easliy as software and yet even just playing a song on the radio involves a small royalty payment to the artist. [Edited by - Barn Door on November 5, 2005 4:17:01 PM]
  7. How do OSS developers aford to live?

    Hi there, thanks very much for your reply. Quote:Sanctity in what regard? In that open source code is such a special thing that people will crusade for the cause of all or even just alot of software being open source. What's so special about open source code? I appreciate the benifits that you presented but for me they don't justify the fervour and passion displayed by OS purists. Quote:Quote: Is there any other industry in the world where some people feel that the product or the main artifact should basically be given away and then have one try and make some money on the side? Razors, Nintendos, Cable companies, TV stations, Radio stations, websites, modern newspapers, most enterprise level software companies... Good examples. However I'm not sure that they are quite equivalent to giving away one's source code. Take radio. Clearly one can tune in for no real cost except to have to listen to the adverts. But if I want to keep listening to a particular station then I'm going to have to keep listening to those adverts. But for a radio station to do the equivalent of giving away their source code they'd have to give away their studio and all of their CDs when you tune in. They'd have to give away everything that you need to run your own radio station. And then one would be in a position to change the radio station such that there were no adverts. With OSS, you're free to ignore all of the added services. In fact, you could even sell the software yourself which would be like setting up one's own radio station with the free studio and CDs (given away upon tuning in to the above mentioned station) and also start pulling in your own revenue from your own adverts. So you see, with your examples, the recipient of the freebee is ultimately getting locked into earning the company more money. But with OSS, you can take the freebee and instantly become a competitor. Quote: Unless the adoption of the software will provide you far more money down the road. Or unless your consultantcy to setup/bugfix/help out makes more money than you could selling it. Or unless your fame gained from the neat little app lands you a bigger job than you would without. Yes these would be good. But then none of them might happen. And so if the OSS purists have convinced me to give away my source code then I'm in not such a good a position. Quote:Though the only thing wrong with communism is people. I agree, and as I think you imply, its because communism is at odds with human nature. So which are you going to choose? Communism or humans? Personally I'll take the humans. And there are sides of human nature other than greed and jealousy of which communism also represses such as the urge to be free to go and do something cool and dynamic indepedently of anyone else. Quote:Software though is not a limited resource. In other words software is an infinte resource? So where on the internet can I download Doom 4, 5, 6... to infinite? I suppose I could make infinite copies of Doom 3 and keep playing it but it would definitely get boring eventually. Quote:Everyone in the world can have a copy of software, and nobody is the lesser because of it. You're suggesting that if I lock myself away for 2 years and work 80 hour weeks in order to complete a piece of software, that if I then hand it out to every human being on the planet to enjoy for free then I'm not the lesser for it?
  8. How do OSS developers aford to live?

    Quote:I seem to remember stallman [about as oss 'purist' as you can get?] raving at some point about how all programmers should just be consultants or something That sounds a bit more juicy. Personally, I don't understand the sanctity of source code that's open for all to see. Is there any other industry in the world where some people feel that the product or the main artifact should basically be given away and then have one try and make some money on the side? If one is after money, wouldn't it be more sensible to sell the software? (The thing that's most valuable.) How did these ideas find their way into the software industry? It sounds like some wacky version of communism. Perhaps its because much of the technology stems from universities where the creators are not so exposed to the demands of the real world or perhaps its the voice of the original hobbyists.
  9. How do OSS developers aford to live?

    But I don't know if they do have that vision.
  10. How do OSS developers aford to live?

    Quote:Original post by TDragon Quote:Original post by Barn Door Would OSS purists prefer that the code you write for this company also be open source? Why would they? They might have a utopian vision of a world where all software is free and there's no concept of ownership.
  11. How do OSS developers aford to live?

    Quote:Better question: Who cares? I do. Can't you tell?
  12. How do OSS developers aford to live?

    Thanks for your replies. Quote:my paying job is database and web programming for a telecommunications company Would OSS purists prefer that the code you write for this company also be open source?
  13. Hi, There's lots of free software around. How do the poeple who make this stuff make enough money to buy food and stuff? Cheers, BD.
  14. Here Joel Spolsky says the following... Quote: Smart programmers minimize the potential distruption of malloc by always allocating blocks of memory that are powers of 2 in size. You know, 4 bytes, 8 bytes, 16 bytes, 18446744073709551616 bytes, etc. For reasons that should be intuitive to anyone who plays with Lego, this minimizes the amount of weird fragmentation that goes on in the free chain. Although it may seem like this wastes space, it is also easy to see how it never wastes more than 50% of the space. So your program uses no more than twice as much memory as it needs to, which is not that big a deal. Can anyone give a brief pointer as to what he's saying here? Cheers, BD.
  15. Writing an OS

    I might just have a go at this over the next, errr, 10 years. Writing a custom kernel and a shell isn't all that big a deal so it would be cool to maybe get one very simple win app to run on it and take it from there. Maybe notepad or just an alert box?
  • Advertisement