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 11y ago · link · parent

No, it counts keystrokes too, so that doesn't work. I haven't tried to get past it myself, but really all I'd do to sidestep it is go to incognito, or use one of my other browsers.

comment 12y ago · link · parent

While there are many who people do not understand exponential growth, such as that video's target audience, I'm pretty sure that none of them are population projectionists.

comment 12y ago · link · parent

Had to do a double take at your comment, because I thought I wrote it! I wonder how many others there are.

comment 12y ago · link · parent

There is some focus on performance in Neovim (just ctrl-f for it here: https://github.com/neovim/neovim/wiki/Progress).

But more importantly, all IO is being ported to libuv, from the blocking calls that are currently being done. This obviously fits Javascript's IO model much better, as you don't have to fake an event loop in Javascript as this port is apparently doing - you just use the event loop the JS implementation provides. After that's done, I'd expect Neovim to work more smoothly as a JS port.

comment 12y ago · link · parent

Managed to find it here: https://mediacosmos.rice.edu/app/plugin/embed.aspx?ID=vVUTzF...

comment 12y ago · link · parent

> That book (along with a small handful of others) made near-future scifi my favorite genre. Any other suggestions?

Which others?

If you've read Daemon and Freedom (TM), maybe you've already read Kill Decision, also by Daniel Suarez. It's about autonomous, swarming drones used in the military. Daemon is a better book though IMO.

There's Hieroglyph: Stories & Visions for a Better Future, which is a collection of short stores in the near-future sci-fi genre. Neal Stephenson found Project Hieroglyph with the intent of advancing positive (non-dystopian) sci fi in the near future, and thus spurring on the next generation of scientists and engineers to go ahead and create it.

Peter Watt's Blindsight and Echopraxia are also good (currently still reading the latter). It has scientifically plausible zombies and vampires, so that's something.

Ramez Naam's Nexus has very interesting ideas on what happens to the world with very good brain-computer interfaces. It's set in the near-future, but I do think the tech is implausible here for so soon.

William Hertling's Avogadro Corp is about a paperclip maximizer built by mistake by a Google-like company, with a Gmail-like service that is manipulated by said paperclip maximizer.

comment 12y ago · link · parent

What's so terrible about mmap()? LMDB seems to use it to great effect: http://symas.com/mdb/

comment 12y ago · link · parent

https://blog.twitter.com/2012/improving-performance-on-twitt...

They moved away from client-side rendering. Quoting:

There are a variety of options for improving the performance of our JavaScript, but we wanted to do even better. We took the execution of JavaScript completely out of our render path. By rendering our page content on the server and deferring all JavaScript execution until well after that content has been rendered, we’ve dropped the time to first Tweet to one-fifth of what it was.

comment 12y ago · link · parent

Whether we are on the cusp really depends on what we mean by "natural language understanding" specifically. What about Watson? It seems to "understand" quite a bit of natural language just fine and can answer interesting questions posed in same. If that doesn't count as "understanding", I'd like to know what does? It probably can't do extended reasoning based on its "understanding", but that would seem to me to be moving the goal posts.

I doubt that a sufficiently well-defined notion of natural language understanding that does not specifically include strong artificial intelligence in its definition would require strong AI. Constructing such a definition is left as an exercise to the reader.

Thinking that strong AI is required for natural language understanding may end up being similar to how it was once thought that beating humans at chess would require advanced AI. Brute forse can do wonderful things, as can weak AI.

comment 12y ago · link · parent

The reason all you hear is "profile profile profile" is that the performance implications of a given code change may sometimes be completely non-obvious, due to all the complex trickery in the processor and cache hierarchy. So what do you do after profiling and finding a performance bottleneck? If you can't identify exactly what the bottleneck's cause is and the solution is not obvious, I suppose all that's left is to do a best guess of the cause and think of a possible solution. Then profile after implementing your solution to check if it made a (positive) difference. And do the profiling/benchmarks even if the solution seems obvious, since it's so easy to be wrong.

Detecting cache misses can be done with valgrind: http://valgrind.org/docs/manual/cg-manual.html

There are architecture-specific instruction-level profilers as well. This video mentions a couple and is also a great overview of how non-intuitive performance can be with modern CPUs: http://channel9.msdn.com/Events/Build/2014/4-587

comment 12y ago · link · parent

Is there a github repo or similar for what you're working on?

comment 12y ago · link · parent

Apologies, I definitely misremembered the facts and should have checked up on it.

I wonder how many iframes the average page has though, especially given Facebook like buttons and similar widgets. And someone like me, who maintains hundreds of tabs, could easily take up a few gigabytes of memory per addon, even if the amount of memory used for a single frame isn't that high.

I'm sure ABP was not the cause for the entire amount of memory in this case (or perhaps not at all), but many addons, each adding a bit of weight, can add up quickly.

comment 12y ago · link · parent

Your insane memory usage is probably due to some plugin or other. Adblock is known to consume something like 40mb per tab open for example, due to injecting a large stylesheet into every single page ever opened.

comment 12y ago · link · parent

Type inference doesn't exactly paper over the differences between types automatically. It just infers types, and doesn't complain as long as all the types line up.

Consider doing something similar in Haskell, setting a variable to either be a string or Text:

    GHCi, version 7.4.1: http://www.haskell.org/ghc/  :? for help
    Prelude> import qualified Data.Text as T
    Prelude T> let x = (if True then "foo" else T.empty)

    <interactive>:3:32:
        Couldn't match expected type `[Char]' with actual type `T.Text'
        In the expression: T.empty
        In the expression: (if True then "foo" else T.empty)
        In an equation for `x': x = (if True then "foo" else T.empty)
Sure, Haskell can sometimes auto-infer very complex types, and has more extensive type inference than Rust does. But it's not magic, and will not do everything for you.

What you're asking for is not type inference, but something else. Perhaps what you really want is weak typing (automatic type conversions), or message sending (can not statically dispatch).

comment 12y ago · link · parent

The core devs are sympathetic (what with Rust being self-hosted) and apparently incremental compilation is coming soon: https://github.com/rust-lang/meeting-minutes/blob/master/wee...

There is also a way to parallelize compilation, which might sometimes speed things up, it's just not enabled by default yet: http://discuss.rust-lang.org/t/default-settings-for-parallel...

comment 12y ago · link · parent

There isn't usually too much confusion, at least among users, about the different between vi and vim. Also, have never heard of nvi, whereas nvim seems like it's going places.

comment 12y ago · link · parent

> It's kind of subtle, but it feels like my hand somehow knows what I'm searching for, and can recognize it much better than I can.

Most brain processes are subconscious, so if neurons outside the brain perform part of those processes, it should not really matter. Subconscious processes are subconscious, within the brain or not.

Anyways, read "On Intelligence" by Jeff Hawkins for a theory of how very fast pattern matching works in the brain. Skin neurons not needed, but can also fit into the theory I think.

comment 12y ago · link · parent

My guess is that you were swapping. In addition to slowness, this explains how switching to an external hard drive for the files you're compiling would help, since it would reduce contention on a single hard drive.

Next time it happens, check if you're out of memory and using a lot of swap space/virtual memory. If so, you just need more RAM. Also, the best upgrade for any computer these days is an SSD, an HDD being the slowest part of modern computers.

comment 12y ago · link · parent

Check again later, and you may see the price go back down (or up higher). There are third-party price history trackers for Amazon as well that let you see the volatility of prices for specific items over time.

comment 12y ago · link · parent

It doensn't "need" a summary. But it's nice for those of us who check comments before bothering with the actual article.

comment 12y ago · link · parent

Servo is just the browser engine, like Gecko. The UI/browser-chrome will be a separate project (named Crow, but not started yet afaik). Also relevant is the fact that Servo wants to be embeddable, like Webkit.

comment 12y ago · link · parent

Not sure this is up-to-date, but: http://doc.rust-lang.org/guide-ffi.html#stack-management

tldr; C's stack is interleaved with Rust's stack.

comment 12y ago · link · parent

I always see the servo team constantly benchmarking things that are parallelize to make sure the parallelization is worthwhile. So if anything, I'd expect end-user latency to decrease substantially.

I think the biggest improvements may come from experimenting with new asynchronous DOM APIs, which the browser can intelligently batch up for performance. Unfortunately, web developers will have to use these APIs for them to have any effect, and it seems to be a long way away right now for real world use. But it's part of what Servo will be helping to explore, as I understand it.

comment 12y ago · link · parent

The article actually notes that higher power densities showed a much smaller effect. Low doses were much more effectual, which is why sitting outside on a sunny day may not work quite as well, if at all.

comment 12y ago · link · parent

Eh, if you have zero sales, you can't really A/B test. Unless there are many people that are getting through to the first step of your funnel, in which case you might be able to run one on that step - but it would be less useful than working on the steps in your funnel that aren't working. You should probably spend some time figuring out which step most people drop off on, before worrying about A/B testing anything.

comment 12y ago · link · parent

If you have trouble finishing books, try audiobooks. That's what has worked for me, and I got subscription at audible.com, which is great.

comment 12y ago · link · parent

Googling turns up a few fantasy name generators that seem to work decently enough: https://www.google.com/search?q=fantasy+name+generator

comment 12y ago · link · parent

The original "idea" itself was itself sarcasm. Your parent was simply underscoring it. You just failed to identify the original sarcasm, and ended up confused and a bit too serious about it all. It's just some obscure humor, no need to get worked up over it :)

comment 12y ago · link · parent

I doubt that's why. In this case, as the site doesn't appear to render well at all on mobile in the first place, that meta tag was probably just blindly copy pasted from somewhere else that did have a responsive page.

comment 12y ago · link · parent

Hengjie explains here: https://news.ycombinator.com/item?id=7783622
1
8910
21