Slashdot Mirror


User: smellotron

smellotron's activity in the archive.

Stories
0
Comments
1,466
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,466

  1. Re:except for garbage collection on LLVM Clang Compiler Now C++11 Feature Complete · · Score: 1

    Calling into the kernel code every allocation / deallocation of dynamic memory is slow.

    If you haven't already, I encourage you to download the glib source code and trawl around. Pick the latest code, or whatever you interact with on a daily basis. Check out the malloc code, it's not as daunting as it sounds. You should discover a few things:

    • If your malloc size is big enough to trigger a mmap (128KB IIRC), then you are absolutely correct that the runtime library will invoke the OS on every allocation/deallocation. Until you hit your number-of-maps limit, at least. So yeah, repeated allocation and deallocation of large blocks of memory is bad in this implementation. But don't throw out the baby with the bathwater! mallopt can be used to tune the allocator to your program's expected behavior. As in: short-lived block sizes should probably be below the mmap threshold.
    • If you don't trigger the mmap size threshold, then the allocator only goes to the OS if it needs to increase the size of the heap. Again, this behavior is tunable: how much to pull from the OS at once, and how much overhead to allow before returning space back to the OS.

    If you're not writing software with high performance requirements, you can probably ignore all of this, because your program's bottlenecks are probably somewhere silly (and nobody cares, anyhow). If you are, this level of control is probably desirable whether you're using GC or deterministic deallocation.

  2. Re:Slippery slope. on Bruce Schneier On the Marathon Bomber Manhunt · · Score: 1

    True, but most of us aren't anti gun we are just pro gun regulation.

    That's not an excuse for statistical lying. A solid pro-regulation argument should be able to address these nuances head-on and still be convincing. Instead, I keep hearing from people who are religiously pro-regulation or pro-gun, twisting the numbers to favor their hypotheses.

  3. Re:Slippery slope. on Bruce Schneier On the Marathon Bomber Manhunt · · Score: 1

    It's also scary ... how efficiently the authorities were able to put a stop to civilian movement *just by asking*.

    This didn't come as a surprise to me, and so it doesn't scare me much. People in general respond to authority figures. I'm sure tensions were higher due to the bombing, and in a high-risk situation it is rational to comply with someone who is better-informed. I'm actually glad that this seems to have been a voluntary success; I haven't (yet!) heard any fallout from arrests, harassment, unlawful search/seizure, or excessive show of force.

    To use the common analogy, I'm happy to be the sheep and let the sheep-dog take care of the wolf, since it's quite clear that the wolf is real (violent men with guns and explosives). It's only scary when the wolf is a figment created/fed/magnified by the sheep-dogs.

  4. Re:Slippery slope. on Bruce Schneier On the Marathon Bomber Manhunt · · Score: 2, Insightful

    Thats why the suspect was found AFTER the lockdown, by a guy walking around outside his house.

    That doesn't actually mean that the lockdown had no effect. At the end of the lockdown, more people than usual were in very familiar territory (home vs. work or transit); everyone was vigilant and focused. Had there not been a lockdown, maybe the "background noise" of daily comings and goings would have been enough to mask the guy's escape.

  5. Re:Fascinating indeed... on Secret Chat Between Julian Assange and Eric Schmidt Published By WikiLeaks · · Score: 1

    TOR and the idea behind TOR [is] probably the most important invention in internet and communication methodologies.

    You don't think there are other more important Internet/communication inventions than Tor? Think lower... Hypertext, TCP, UDP, IP... Ethernet, Radio, Fiber-optics. Other stuff that is really cool, that I don't even know about. Tor is interesting in our times because privacy is currently struggling in the face of technology. But IMHO it's not nearly as earth-shattering as the stuff it's built upon.

  6. Re:"Immeasurable Impact"?? on Secret Chat Between Julian Assange and Eric Schmidt Published By WikiLeaks · · Score: 1

    What ELSE have they done to "impact technology"?

    They've done a lot of little things for developers over the years. Some examples:

    • Code Search: I used this to look for both users and implementations of open-source APIs. I haven't looked at it recently, but at the time it provided great results when searching for known functions. Definitely better than any full-web search.
    • Utility libraries like sparsehash. Maybe the algorithm wasn't earth-shattering, but high-quality, independent, open-source implementations of data structures do have an impact on the global developer community.
    • SPDY is Google's creation. My web browser, written by some other company, supports this protocol.
  7. The other half is also looking for some tail.

  8. Re:Seriously? on Is Bitcoin Mining a Real-World Environmental Problem? · · Score: 1

    What if Bob the Bitcoin hoarder (obviously hypothetical) decides that he'll value every of his Bitcoins at 2.0 grams of gold?

    In this case, Bob the Bitcoin hoarder will trade bitcoins in the open market. If he swings a lot of capital around, then he may singlehandedly move the market price of bitcoins toward his target price. In that case, maybe he'll even become Bob the Bitcoin market maker, bidding below 2.0g gold and offering above, raking in the spread.

    If he's "wrong" (i.e. lacks sufficient capital to beat the rest of the market indefinitely), then the market recovers and moves... wherever else. Bob either holds his position indefinitely (waiting for the price to move in his favor), or he gives up and eventually closes his position at the prevailing market price.

  9. Re:Lots of interesting questions still.... on Is Bitcoin Mining a Real-World Environmental Problem? · · Score: 1

    It has no inherent value as a commodity.

    Certainly not like any physical good, agreed. As a trading medium, it is still useful for laundering money ("shuffling").

  10. Re:31000 homes? on Is Bitcoin Mining a Real-World Environmental Problem? · · Score: 1

    Every time I see a wanna-be geek proclaim the greatness of BitCoin I die a little inside.

    That sensation you're feeling is probably just the tasty magnets.

  11. Re:Until they hit the max number of bitcoins on Is Bitcoin Mining a Real-World Environmental Problem? · · Score: 2

    But every single deposit or loan will have involved a real strawberry.

    Are you happy with your bank? I've been thinking about switching, and this sounds very compelling.

  12. Re:Seriously? on Is Bitcoin Mining a Real-World Environmental Problem? · · Score: 1

    For example, I might do some web design work for a company in Greece, and I'd gladly take payment in bitcoins which I'd then sell immediately to get dollars.

    The downside of doing this (with any foreign currency) is that the value of the currency relative to your own varies over time. With most world currencies most of the time, this doesn't cause a problem. With bitcoin's present volatility, you are much more likely to get bitten by a surprise move.

    I'm not trying to discourage your approach or say that it's wrong... I'm just trying to point out that there is risk; there are no free lunches.

  13. Re:Lots of interesting questions still.... on Is Bitcoin Mining a Real-World Environmental Problem? · · Score: 1

    It's definitely not an investment. At best you could call it a speculation.

    "Investment" is probably a bad word, but the argument of "currency vs. commodity" is (I believe) the heart of the GP's comment. I've seen the debate pop up frequently, though I think it is ultimately irrelevant: what matters is the price volatility and liquidity. Bitcoin prices are extremely volatile right now, which means it should be approached by investors (or "speculators" if it pleases you) with high risk tolerance. Definitely more volatile than any pair of the major world currencies at the moment.

  14. Re:Already is regulated on Ask Slashdot: Should Bitcoin Be Regulated? · · Score: 1

    you pay taxes on unrealized gains all the time. I'm doing it right now on a stupid merger transaction where the company I owned converted my shares into their "new" shares because they suddenly wanted to be an Irish company.

    "All the time"? How often do companies effect changes like this? I'm not trying to be sarcastic, I'm genuinely curious how frequently you are seeing events like this.

    You also do it when the convert ISO into stock, even if you don't sell the stock (important lesson: just sell the damn stock).

    Why not just sell enough to cover your tax bill? If it goes down in the future, yeah you're screwed because you payed taxes on value which you never really had access to. But if it goes up, then the capital gains on the eventual stock sale should be based on the market price when you converted, meaning you shouldn't be double-taxed.

  15. Re:Why am I at work? on StarCraft 2: Heart of the Swarm Released · · Score: 1

    She'll need to kill zerg again like the zerg campaign in the original.

    What good would a zerg campaign be without a little bit of chaos?

  16. Re:sea salt. on Salt Linked To Autoimmune Diseases · · Score: 1

    Isn't all salt originally sea salt? Some of it is collected by evaporating sea water, some of it is mined from underground deposits left behind by ancient oceans.

    I don't want to support the AC's viewpoint about "processed crap" vs. "sea salt", but I would like to answer your question: Most industrially-produced salts are very pure: the processing done is a refinement which eliminates non-salty things. Salt harvested in "traditional" or "artisinal" methods will have more impurities present. Take sel gris, for example: it is pinkish or gray because some clay gets raked up along with the salt crystals. There are more minerals in there! My memory is hazy and I don't have a reference around, but some of the notable extra components are Iodine, Magnesium, and either Phosphorus or Potassium. Having more of these trace minerals around might be a good thing overall, but whenever I see the health benefits of "sea salt" I smell snake oil: the copy writers are just looking for a sale.

  17. Re:Too much salt on Salt Linked To Autoimmune Diseases · · Score: 1

    *sigh* Don't make your inability to write simple English my fault.

    It is simple English. Your confusion was probably caused by a failure to identify an implied context. Given the variety of foods which contain naturally-occurring salts, it is unreasonable to believe that the OP was actually able to achieve a 100% salt-free diet. Thus, the most reasonable interpretation of "giving up salt completely" is "giving up [added] salt completely". With your zombie comment, it's clear that you knew that your chosen interpretation was a non-sequitor.

  18. Re:Too much salt on Salt Linked To Autoimmune Diseases · · Score: 1

    Humans taste salty. Just ask any dog that is trying to lick your face,

    I used to have a cat who would lick my hair and strip out quite a bit of oil. Add that to my salty skin and I'm practically a chicharone!

  19. Re:most salt is not real salt anyway on Salt Linked To Autoimmune Diseases · · Score: 1

    It's also just rock salt, and that pink color is just from iron oxide.

    The iron oxide must be imparting some flavor on it, because it does not taste the same as more pure NaCl. Also, the shape/size of rock salt makes it wonderful for beef grilling. The salt will dissolve partially, but will remain concentrated in spots. The effect is similar to an aged Parmigiano-Reggiano cheese.

  20. Re:Europa was discovered in 1610 by Galileo... on Discovery Increases Odds of Life On Europa · · Score: 2

    We have the capability to go there today, if we really wanted to.

    I can't think about exploring Europa without getting that tingly sensation that I am being watched:

    ALL THESE WORLDS
    ARE YOURS EXCEPT
    . . EUROPA
    . ATTEMPT NO
    .LANDING THERE

  21. Re:Noisy annoying environment on Why Working Remotely Needs To Make a Comeback · · Score: 1

    Typical US centric view... Do you think the rest of us care about your fake celebrities?

    Well since you brought her up, I can only assume at least you care about our fake celebrities. And like I said, I'm fairly confident that hers is a household title among (almost?) everyone I know. Is that a US-centric viewpoint? Well no, because it's not a viewpoint, but rather an observation of my own social circle. "Octomom" is a staple name in US households, and the few acquaintances I have abroad are—not concidentally—familiar with US pop culture.

    In any case, we're getting off-topic. You were ragging on Beer Ninja for leaving his children unattended when he said no such thing. I find that when I work from home I also need strong isolation away from my family. It's just too much of a distraction to listen to their conversation or to strike up casual conversation myself. Earmuff headphones in a room on the other side of the house, if possible.

  22. Re:Noisy annoying environment on Why Working Remotely Needs To Make a Comeback · · Score: 1

    Do you even know who Octomom is?!

    I don't think I know anyone who doesn't know that name—but her drug problems have nothing to do with Beer Ninja's approach to working at home.

    check yourself before you wreck yourself.

    What?!

  23. Re:Noisy annoying environment on Why Working Remotely Needs To Make a Comeback · · Score: 1

    re-read GP: he doesn't get a babysitter, he locks the door.

    GP said nothing about presence or absence of a babysitter, so stop making assumptions. Even if a babysitter or SO is present to keep the kids alive, they probably have object permanence. They know that dad is in the locked room, physically close but ignoring them.

  24. Re:Google search broken in other ways too on RIAA: Google Failing To Demote Pirate Websites · · Score: 1

    I searched for useless twits, thieving bastards and lying motherfuckers and in none of the cases did RIAA appear near the top of the list

    FTFY. Oh, for the days before rel=nofollow!

  25. Re:Ban lobbying on RIAA: Google Failing To Demote Pirate Websites · · Score: 1

    If you hire a plumber to do your work, will you be okay if he spends the time instead, fixing the stuff of the rich folks across the street?

    Since a senator is a sort of a shared service, it's more like having the maintenance guy in your building spending most of his time in the rich neighbor's unit. But most of your other neighbors are ambivalent because they don't need any work done right now, so when you bring it up at an association meeting you're just ignored. Fix your own damn heater, our rich neighbor gives us bottles of scotch and his wife is hott.