Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ahoge
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
241.
▲
by
ahoge
13y ago
The semicolons are still randomly used. The demo application has several scripts after /body. `navi` should be `nav`. > Pure HTML is cleaner and passes W3C validator. The demo does not pass the W3C validator.
242.
▲
by
ahoge
13y ago
You do that inside the SVG. Instead of having a yet another path or a group of paths, you just have that `use` element (which just references some other node). Basically, it lets you reuse something, but you can transform it and set some st
243.
▲
by
ahoge
13y ago
> As we were just duplicating the same icon multiple times within the same file, it compressed down to the size of just one icon SVG allows you to create clones with the `use` element. Any style which wasn't set by the original ca
244.
▲
by
ahoge
13y ago
There weren't more than 9 quadrillion tweets though. >>> Math.pow(2,53) / Math.pow(10, 9) / 7 1286742.7506772846 Over a million tweets per person? Certainly not.
245.
▲
by
ahoge
13y ago
Very few applications need "big" (in this case: > 2^53) integers. So far, I only needed them once. I ported a big int micro benchmark a few months ago. Kinda meta. Not sure if that really counts.
246.
▲
by
ahoge
13y ago
> Integer/float semantics and support for large integers don't work (it seems like they didn't implement them manually, so it just falls back to doubles?) Integers work fine up to 2^53 (9 quadrillion and some). There is
247.
▲
by
ahoge
13y ago
In most environments, writing something like `if (x = 5)` will generate a warning. E.g. if you use JSHint, you'd get: "Expected a conditional expression and instead saw an assignment." Nowadays, there usually isn't any b
248.
▲
by
ahoge
13y ago
They have a watch mode and there are also source maps or debug mode. It's basically as if browsers would support it natively. The workflow is fine, really.
249.
▲
by
ahoge
13y ago
Ported to Chrome? That editorialized headline is kinda wrong. It's pNaCl. With pNaCl, you can have an Emscripten fallback, if you want.
250.
▲
by
ahoge
13y ago
If you use pNaCl, you can have an Emscripten fallback.
251.
▲
by
ahoge
13y ago
> why do you think he went with Dart? I'd guess because it offers more structure than JavaScript. You have classes, packages, and you can just `import` things. You also get proper tooling. You can also overload operators, which is
252.
▲
by
ahoge
13y ago
Oh, you.
253.
▲
by
ahoge
13y ago
> A pretty web interface isn't a must-have requirement. According to most definitions of "CMS", it is. With static website generators, editing, versioning, publishing, etc is done externally. They aren't systems w
254.
▲
by
ahoge
13y ago
Jekyll is a static website generator. It doesn't let you edit and publish content from a central interface. It's not a CMS.
255.
▲
by
ahoge
13y ago
Yes, Chrome Apps can make use of the Chrome Platform API which allows them to do all kinds of privileged things (if the required permissions were given). http://developer.chrome.com/apps/api_index.html So... yea, it&#x
256.
▲
by
ahoge
13y ago
Firefox's addons also only work with Firefox. Thunderbird and Komodo also only work on top of the Mozilla platform. Eclipse and Netbeans needs Java. A bunch of apps need Air. You can make this work inside XULRunner if you want. You onl
257.
▲
by
ahoge
13y ago
Do you see any ads if you search for oldest sweet shop near mochi gate lahore ? I don't. I also don't get any if I search for nipplegate , for example. You see, those ads depend on the used search terms. If no one bids on those
258.
▲
by
ahoge
13y ago
> interpreted languages Being interpreted is an implementation detail. For example, V8 (Chrome's JS engine) doesn't have an interpreter. It compiles to (quick and dirty) machine code right off the bat. Later, the "hot&qu
259.
▲
by
ahoge
13y ago
> the removal of the "thin" address bars/small icon sets Oh, man. :/
260.
▲
by
ahoge
13y ago
Looks pretty wasteful. I prefer how it currently looks on my machine: http://i.imgur.com/PvlTZ3k.png My tabs can get as small as the pinned ones on the left (which is the default behavior of every other browser). There us
261.
▲
by
ahoge
13y ago
I prefer flat laptop-like keyboards. They are cheap, quiet, and they also seem to cause the least amount of strain.
262.
▲
by
ahoge
13y ago
It's the only way to add some kind of "inline" links. It's just a side-effect of some arbitrary limitation.
263.
▲
by
ahoge
13y ago
How many years did it take JavaScript to become a multi-vendor standard? Let's see... Netscape Navigator 2.0 was shipped with it in September 1995 and ECMA-262 1st Edition was written in June 1997 and finally approved in April 1998. Ho
264.
▲
by
ahoge
13y ago
> If someone else did something bad in the past [...] Earlier you mentioned "far past", but this stuff is fairly recent: Firefox 2 - October 24, 2006 Firefox 3 - June 17, 2008 Firefox 22 - June 25, 2013 > while it's
265.
▲
by
ahoge
13y ago
Yea, Firefox 2.0+ is shipped with support for generators/iterators, array comprehension, let, and destructuring assignment: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_... Firefox 3.
266.
▲
by
ahoge
13y ago
> [Dart] is not an open standard It will get standardized in the not too distant future. [1] > Apple dominating the mobile web Huh? Android's market share is over 80%. iOS got about 13%. [2] [1] http://www.ecma-int
267.
▲
by
ahoge
13y ago
The VM already works on Android (x86 and ARM - not sure about MIPS).
268.
▲
by
ahoge
13y ago
main()=>print('Hello World!');
269.
▲
by
ahoge
13y ago
> fib(n) => n < 2 ? n : (fib(n - 1) + fib(n - 2)); + the laziest way to do memoization: var cache = new Map(); fib (n) => cache.putIfAbsent(n, () => n < 2 ? n : fib(n - 1) + fib(n - 2));
270.
▲
by
ahoge
13y ago
> enterprises locked in a system Why would anyone do that? We have a super nice solution for that. It's called "site-specific browser" or SSB. It's like a browser without address bar, which automatically opens a spe
More ›