Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ahoge
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
21 ms
·
151.
▲
by
ahoge
12y ago
Firefox 32+ supports it natively. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... http://kangax.github.io/compat-table/es6/ There doesn't seem to be anythi
152.
▲
by
ahoge
12y ago
> How big is the "full" set of polyfills anyway? Right now it's around 75 kB without minification and without gzip. However, this doesn't include any code for doing feature detection. So, my somewhat educated guess
153.
▲
by
ahoge
12y ago
> What about pixel manipulation of images? We got this years ago. You can do per-pixel stuff via the Canvas API.
154.
▲
by
ahoge
12y ago
> There is a Google Chrome Helper process for each tab you have open, for each extension you have installed, for each plugin that is currently running and one to talk to the GPU in your system. You can see the CPU/RAM/network
155.
▲
by
ahoge
12y ago
It got attention before it was associated with Google. It was created by a googler, but it wasn't a Google project from the beginning.
156.
▲
by
ahoge
12y ago
> Fix the minifiers. Most minifiers have a switch for that. E.g. UglifyJS2's is "-m"/"--mangle". YUI Compressor's is "--nomunge". By the way, this stuff looks a lot nicer with AngularDart or
157.
▲
by
ahoge
12y ago
> "premature optimization." Once a feature works as intended, optimizations aren't premature anymore. You're then in a position where you can profile, measure, and compare.
158.
▲
by
ahoge
12y ago
Invented? You are missing the point. The comments are written in a markup language (Markdown, UBB, whatever...) which is then converted to HTML. It's transformed and not displayed as-is.
159.
▲
by
ahoge
12y ago
No, they are not. It's not directly spit into an element with white-space: pre-line or white-space: pre. It's converted into paragraphs. Just like stuff inside asterisks is converted into emphasis.
160.
▲
by
ahoge
12y ago
Paragraphs and emphasis are frequently used here.
161.
▲
by
ahoge
12y ago
Reddit, Stack Overflow, GitHub/BitBucket (readmes, tickets, wikis), and it's also used by a couple of CMSs, blog platforms, and static website generators. Virtually all of the text I write is Markdown. Even this very comment is wr
162.
▲
by
ahoge
12y ago
> Markdown (.MD) is a text format that lazy people use to write HTML. Markdown is a markup language for relatively simple structured documents. You can convert it to HTML, but you could as well convert it to something else. > Howev
163.
▲
by
ahoge
12y ago
That's GitHub's CSS. They could set `tab-size` to 4, but they just left it at the default of 8.
164.
▲
by
ahoge
12y ago
The imperative game logic stuff would be about the same. If this happens, print this and that. If this key is pressed to these 5 things. You can't abstract those steps away. However, video, audio, input handling, and loading resources
165.
▲
by
ahoge
12y ago
It's not like SpiderMonkey starts up instantaneously. Also, an interpreter is of course slower than the quick and dirty native code generated by V8. JSC doesn't seem to have an advantage in the extremely short-running SunSpider be
166.
▲
by
ahoge
12y ago
SIMD makes JS a better compile target. The Dart VM is still more "lightweight" (it has to generate a lot less native code) and it offers much faster startup (10x). There also aren't deoptimization traps scattered all over the
167.
▲
by
ahoge
12y ago
[Off topic] <script> var CONTENT = '' + "Why Common Markdown isn't the Solution\n" + ... That's probably the most roundabout way to put an article on the web. You are inlining Markdown in an
168.
▲
by
ahoge
12y ago
Reddit and GFM use the same table syntax. Reddit is huge [1]. GFM is widespread. PHP Markdown, MultiMarkdown, etc also support that syntax. Stack Overflow is pretty much the exception [2]. I'm not interested in Markdown parsers which d
169.
▲
by
ahoge
12y ago
So are fenced code blocks.
170.
▲
by
ahoge
12y ago
I'm really exited about binary data support. The timing is amazingly convenient. It's exactly what I needed right now. Coming from CouchDB, support for attachments (=binary data) was the only thing I was missing.
171.
▲
by
ahoge
12y ago
> The SQL-esque syntax is optional. The primary interface is HTTP. Then the introduction needs some work. "DocumentDB enables complex ad hoc queries using the SQL dialect" "Azure DocumentDB offers the following key capab
172.
▲
by
ahoge
12y ago
CouchDB doesn't support ad hoc queries. CouchDB is all about MapReduce and heavy caching. It's very rigid.
173.
▲
by
ahoge
12y ago
I'd say RethinkDB does it best. You just chain some regular function calls and pass some lambdas here and there. It looks and feels very natural. Plus, that "data explorer" thing lets you test those queries quickly. Generatin
174.
▲
by
ahoge
12y ago
Pngout, optipng, deflopt, jpegtran, gifsicle, cwebp, zopfli, and so forth are all command line tools. I'm not really sure why you think that this stuff is meant for designers. Recompressing images is a frontend optimization. It's
175.
▲
by
ahoge
12y ago
For one, a language specification is mandatory if you want to standardize it (ECMA, ISO, JIS, ...). Secondly, it paves the way for competing implementations. Having more implementations automatically means more performance, because they com
176.
▲
by
ahoge
12y ago
Doesn't work. http://jsfiddle.net/QEJw9/
177.
▲
by
ahoge
12y ago
Yea, same here. :/
178.
▲
by
ahoge
12y ago
Aw, crap. Do you know the CSS offhand? I already have to use some user CSS because they removed the ability to set the tab min width via `browser.tabs.tabMinWidth`, because that property wasn't "worth it" according to one dev
179.
▲
by
ahoge
12y ago
Some of this is covered by the WebP FAQ: https://developers.google.com/speed/webp/faq
180.
▲
by
ahoge
12y ago
> why is [file size] a factor so important it must be emphasized this much? Because there is no dead code removal. All of it goes over the wire. Even the stuff you don't use. If you use a 70kB library, you'll pay 70kB in page
More ›