1,377 karma · joined Apr 26, 2011 (15y ago) · 616 submissions
I'm actually ehsanul (http://news.ycombinator.com/user?id=ehsanul) here on HN, but I switched Google accounts.
comment 12y ago · link · parent
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
comment 12y ago · link · parent
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
comment 12y ago · link · parent
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
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
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
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
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
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
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
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
tldr; C's stack is interleaved with Rust's stack.
comment 12y ago · link · parent
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
comment 12y ago · link · parent
comment 12y ago · link · parent