Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ahoge
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
40 ms
·
361.
▲
by
ahoge
13y ago
>Who is the audience for Dart? AS3, C#, Java, and JavaScript developers. That's why they went with C-like syntax. It's familiar to most people. >But web developers, who are the primary producers of JavaScript, will happily stick wit
362.
▲
by
ahoge
13y ago
Just like V8, the Dart VM doesn't have an interpreter. The code is directly compiled to (fairly crude) machine code. Later, the hot parts are replaced with better machine code.
363.
▲
by
ahoge
13y ago
That shouldn't stop anyone. Dart works fine in every modern browser (and IE9), because you can compile it to JavaScript. Generating minified Dart code is one line and compiling to minified JS is also just one line. If you do one in your bui
364.
▲
by
ahoge
13y ago
> Optionally typed is extremely strange. It's like the kind of JSDoc annotations you need for the Closure Compiler. The difference is that it's baked into the language, which enables a very terse syntax and, since it's standardized, it
365.
▲
by
ahoge
13y ago
> It's really too bad there isn't an equivalent of play.golang.org for Dart. There is. http://try.dartlang.org Anyhow, the barrier is actually pretty low. The editor zip is about 140MB in size and contains everything you need: the SDK
366.
▲
by
ahoge
13y ago
I found this very helpful: http://www.slideshare.net/jessedee/steal-this-presentation-5...
367.
▲
by
ahoge
13y ago
Bitbucket works fine for this. Its wikis are just markdown/git. You can add stuff offline or you can use the web interface.
368.
▲
by
ahoge
13y ago
It's written in C++.
369.
▲
by
ahoge
13y ago
>[Google has] kind of abbonned JS in favor of Dart Where did you get that idea? Just look at these graphs: http://www.dartlang.org/performance/ Apparently, they are still trying to make V8 faster. V8's graph isn't flat and there are a
370.
▲
by
ahoge
14y ago
> giving people shortcuts I don't see any problem there. The code is very compact. There are lambda expressions, method cascades, and user defined operators. Also, structure is baked in. You don't need any of that AMD boilerplate code.
371.
▲
by
ahoge
14y ago
>I think people waste a lot of time giving types to APIs and obscure the intention of the code What do you mean? Adding types to the surface area (arguments and return types) removes a lot of friction. I'm using jQuery for a couple of y
372.
▲
by
ahoge
14y ago
> The only gain here is facebook's bandwidth costs, at the expense (and inconvenience) of its users. Users love faster websites. If you make your website faster, people will use it more. If you're selling something, they will buy more
373.
▲
by
ahoge
14y ago
RSS just isn't very popular. Firefox also removed that RSS icon from the address bar a few months ago. Do you think Mozilla did that because they "oppose the open web"? No, of course they don't. They got rid of it because virtually no one u
374.
▲
by
ahoge
14y ago
Even IE9 is pretty old. It's over 2 years old by now. IE8 is over 4 years old. IE11 will be released soon. How many versions of IE do you intend to support?
375.
▲
by
ahoge
14y ago
Why not? Placebos also look like the real thing, don't they? Anyhow, in cases like this it's always nice to save all the data you can get. The correlation you'd like to demonstrate might not exist at all. However, if there are many paramete
376.
▲
by
ahoge
14y ago
It could, for example, be used to demonstrate that people are more willing to reveal some private information if you make them jump through a few hoops to gain this "privilege".
377.
▲
by
ahoge
14y ago
Yes, the SIMD optimizations aren't quite there yet. You can already write SIMD code though.
378.
▲
by
ahoge
14y ago
"Minority browser"? What's that supposed to mean? Anything other than Chrome? Or, if we go back a few years, anything other than IE? In case you didn't know, there are 3 very important browsers: Chrome, Firefox, and IE. Right now, Firefox g
379.
▲
by
ahoge
14y ago
We had lossy RGBA many years ago with JNG (a simple PNG/JPG mashup format), but Mozilla killed the format along with MNG. The reason was that the MNG lib added about 100kB to the installer. They suggested to use Flash instead. (Yes, serious
380.
▲
by
ahoge
14y ago
>practically does this really matter? JavaScript is also a compiler target. Even smaller less heavy applications can benefit from these optimizations. >up-front costs of JIT You have to reach some threshold. The code is optimized as
381.
▲
by
ahoge
14y ago
Haha... yea, you can actually make a x-sinewavemarquee tag if you want.
382.
▲
by
ahoge
14y ago
You could write the back-end in Dart, too. The Dart VM can do IO out-of-the-box. Just like the Node executable, it can be used to run command line scripts, web servers, or anything else you can think of. Anyhow, since the front-end only com
383.
▲
by
ahoge
14y ago
> ClojureScript [...] provides all of the same benefits. That doesn't seem to be the case. Dart provides great tooling and you can also step-debug your code from within the IDE. The workflow with Dartium (Chromium with embedded Dart VM)
384.
▲
by
ahoge
14y ago
"JS is the crappy ill-suited compiler target everyone is forced to use." Now, if you say instead that it's low-level ("assembly"), fans of JS feel smug about using it instead of being offended. However, at the same time you hint that JS is
385.
▲
by
ahoge
14y ago
Where do those 30% come from? DeltaBlue: 100 / 320.84 * 512.74 = 159.81 -> +60% Richards: 100 / 444.00 * 814.09 = 183.35 -> +83%
386.
▲
by
ahoge
14y ago
Dart's biggest selling point is that it's very nice to use and that it's free of nasty surprises. Have you ever written a somewhat bigger JavaScript application with a few thousands lines of code spread across dozens of files? It's horrible
387.
▲
by
ahoge
14y ago
This was added to Gecko 20.0, but it isn't part of the specs. V8 doesn't support it: http://code.google.com/p/v8/issues/detail?id=2455
388.
▲
by
ahoge
14y ago
"Run". Yes, just ~600 times slower. At that speed it probably won't be very useful. You have ~50 msec for an operation which is perceived as instantaneous. If it takes 30 seconds (600 times as long), people will not use it. It simply isn't
389.
▲
by
ahoge
14y ago
You were able to do the same without asm.js. Problem is, it's way too large and way too slow. People aren't doing these things because they simply aren't feasible. If you could compile Python directly into that asm.js subset of JavaScript,
390.
▲
by
ahoge
14y ago
>the notion that GC somehow can't be implemented is nonsensical http://asmjs.org/faq.html "The asm.js model provides a model closer to C/C++ by eliminating dynamic type guards, boxed values, and garbage collection." Sure, nothing stop
More ›