Better HN
topnewbestaskshowjobs
Log inSign up

ehsanu1

1,377 karma · joined Apr 26, 2011 (15y ago) · 616 submissions

ehsanul@ehsanul.com

I'm actually ehsanul (http://news.ycombinator.com/user?id=ehsanul) here on HN, but I switched Google accounts.

Submissions

comment 12y ago · link · parent

Why is that unsatisfying? And why is it just "technically" open source, is it not open source in spirit as well?

comment 12y ago · link · parent

Unlike with nukes (Project Orion notwithstanding), having access to relativistic weapons also implies having access to space travel. This is not necessarily the case, especially given biological constraints, but let's assume you have space travel.

Well, then you are also spread out, and given enough time, you spread throughout a galaxy. With that level of spread, the safety in numbers and distribution over a large space is a form of strong defense against relativistic weapons from other civilizations.

Furthermore, the technology for these weapons may also open up avenues for defense, even if such is not the case for nuclear weapons. Consider a relativistic missile detection system that continually scans for incoming missiles and is able to quickly accelerate its own for head-on collisions. Granted, there's not much notice. But let's say you have missiles at 0.99c - quite fast - and a light year away (would any closer be plausible for a launch? Maybe with relativistic ICBMs... or ISBMs rather). By my non-relativistic calculations, that gives you almost 90 hours to prepare countermeasures.

A "simpler" countermeasure is just to go overboard with the spreading idea. Simply live on millions of asteroids with your advanced propulsion tech slapped on. When a relativistic threat is detected, each asteroid is nimble enough to get out of the way, and if some are still hit, it's a small loss.

Though, the attacker could just shoot many smaller, faster missiles dispersed over a wide area. Not civilization-annihilating now, unless it was overwhelming in number, but still painful.

comment 12y ago · link · parent

Thanks for the link to the Doug Lea screencast/talk, very interesting so far.

EDIT: Indeed it was a great talk, very informative! I came to the opposite conclusion about layers of the system, though I'd say that it isn't the number of layers that's the problem, but the nature of them.

From the talk, having the GC insert safepoints where threads can be stopped for a collection, and having the JIT inserting counters (resulting in memory contention) are two things in Java that caused for high-performance concurrency. Running on top of a VM causes similar issues. Though, clearly there are many other layers and unanticipated layer interactions, just laying in wait to mess you up regardless.

comment 12y ago · link · parent

You are correct, you'd use them to implement your own concurrent data structures per requirements. But I do think they're slightly higher level primitives than most languages provide, and there is some nice flexibility in the options available, in terms of control over sharing/mutability and mechanism.

RWArc allows multiple writers, but each blocks until the "active" writer gives up its lock. But I suppose you mean that you can't have concurrent writes, so I understand this might not be suitable for the use-cases you were talking about.

comment 12y ago · link · parent

And Rust has the `sync` crate which has a variety of concurrency mechanisms and primitives: http://static.rust-lang.org/doc/master/sync/index.html

No STM of course, but RWArc allows for multiple writers, or you can just uses Arc if immutable sharing is acceptable, or just message passing via Chan (in the standard library) if sharing data concurrently is not required. Lots of options.

comment 12y ago · link · parent

This also highlights why Firefox's addon system is in some ways superior to Chrome's extensions - this would be impossible in Chrome.

comment 12y ago · link · parent

http://www.correlated.org/

comment 12y ago · link · parent

Was this there when you posted?:

    RATE LIMITS
    We are limiting the number of API requests from a single IP to 1000 per hour.
    If you or your application has been blacklisted and you think there has been
    an error, please contact us.

comment 12y ago · link · parent

An implementation of the idea: http://www.openmirage.org/

A good talk about it by one of the developers/researchers: http://vimeo.com/16189862

comment 12y ago · link · parent

I realize I can do some digging. I was just hoping for pointers to make that process easier and more fruitful - otherwise I will probably not bother myself to be honest. I imagined you would have something more relevant to share about this topic, compared to a search, since you say it bothers you that there is no discussion about this. I'm inviting you to start some discussion.

comment 12y ago · link · parent

Eventually we'll just jack our devices directly into our visual cortex instead of bothering with all the issues screens+optics brings. Then it won't matter that it's VR, given high-fidelity, accurate input. Current VR systems like the Oculus are "just" a stepping stone to something much greater.

That said, could you be more specific about the problems caused with our current VR technology, and the reason they happen?

comment 12y ago · link · parent

I found it useful. Makes me more likely to click the actual link when I can see what it might be (an image in this case). Seeing the real domain and path is also nice.

I gotta say, "homage to the guy who produced their best beats" seems very inaccurate, you sure that's the right link?

comment 12y ago · link · parent

It isn't a sales pitch. I read it as such myself, but it looks like it's just a verbatim excerpt - ".. in this book .. " can be taken as both a pitch, and a section from an introductory chapter in the book. An unfortunate coincidence.

comment 12y ago · link · parent

It's just referring to the futility of the eye protection (mentioned just before) against all that water.

comment 12y ago · link · parent

According to this, you're the one who's making it worse for women: https://news.ycombinator.com/item?id=7121942

I found that pretty amusing, and aligns with my expectations.

comment 12y ago · link · parent

It's blocking tracking scripts/pixels/etc. If a site's JS happens to rely on some external tracker having been loaded, it can break the site. I think that's what's usually happening here. Moral of the story: don't rely on external scripts people.

comment 12y ago · link · parent

I've noticed many sites that have failed load a video or something similar due to Ghostery, but it has been happening much less after the last major update. It's usually not as drastic as stripping all CSS of course, just breakage that seems like a bug on the site, until you realize you should try again after pausing Ghostery.

comment 12y ago · link · parent

No, that's due to Ghostery. Recognized it as soon as I saw your image. Ghostery breaks lots of sites, even those it isn't explicitly blocking.

comment 12y ago · link · parent

You can't really tell either way. The road to NEXT and Pixar was through Apple. And I do hear his role in Pixar is often portrayed as being much more than it really was.

comment 12y ago · link · parent

No audio track on that link due to some copyright claim... Ugh.

comment 12y ago · link · parent

I thought specifying a fallback font does that. Of course, problem is that many websites try to avoid the dreaded FOUT, and end up hiding text, or even the whole site, until fonts are loaded.

comment 12y ago · link · parent

It does make sense if you think about it. In the "grey" version, you perceive it as grey since it looks like there is a transparent yellow layer, and based on the surrounding, it looks like the element itself is just grey rather than yellow (even though there is a yellow tint on the object due to the layer).

But, with a blue transparent layer, there is no yellow to add on from the layer, so the object itself must be yellow in order to show through as such. So our brain makes the appropriate adjustment. Very smart. We see what the actual object probably looks like, rather than the exact colors.

The classic optical illusion with a rubik's cube with a side in shadow is basically the same illusion.

comment 12y ago · link · parent

It's JS, check the gist. The race condition is with image loading. I don't think CSS has race conditions, but someone please prove me wrong here :)

comment 12y ago · link · parent

Memory leaks waxed and waned as development focus changed. I remember Firefox's memory usage being quite decent around version 2, and even into 3. Later, some things got bloated, though a large part of the memory problem was due to misbehaving plugins. The memshrink project managed to fix even memory leaks across plugin authors' projects.

Also, note that a GC does not automatically mean no memory leaks. For instance, see how leaky Gmail is (was worse according to their dev team).

comment 12y ago · link · parent

That's really cool! And yeah, doesn't scale as you said, so I still don't see how we can go GC-less for everything.

comment 12y ago · link · parent

`it only took Mozilla 2 decades to get Firefox to not leak memory like a sieve`

I'm sure you're aware that this is quite an unfair/exaggerated statement to make. But yes, I'm all in favor of language features that help prevent memory leaks.

But the reason the smart folks at Mozilla don't just switch to using a GC for all of Firefox (as do none of the other major browser vendors) is due to GC pauses sucking for user interaction. If you don't think that's a concern, or have a solution for it, please elaborate.

comment 12y ago · link · parent

While you're right for probably most classes of application, this is not an absolute truth. There are reasons not to use the GC - eg you're developing a browser, or a GC for a language, and many besides.

I see a similar thread where you made a similar statement, so in favor of not rehashing that whole thread, here it is:

https://news.ycombinator.com/item?id=7061533

comment 12y ago · link · parent

My understanding was that `box` would be for allocation, but type definitions still need to have the ~ sigil. But I could be mistaken.

comment 12y ago · link · parent

Please elaborate?
1
101112
21