Hacker Newsnew | past | comments | ask | show | jobs | submit | more phpnode's commentslogin

This is quite a bit more expensive than agencies I've worked with in the past, and those typically involve a translator + proofreader who are at least somewhat knowledgeable about the topic being translated, so the quality is pretty good.

I suppose some people will be happy to pay a premium for a quick turn around, but personally I care about the quality much more than the delivery time.


Thanks for your feedback, we'll take it into consideration.


You should feel ashamed of yourself for writing this disgusting comment.


I'd imagine this method won't work for sites like AM...


> Is there any benefit to it?

Well, in theory yes. When determining whether a specific function can be inlined into its call site, V8 looks at the length of the function source code to try and guess whether it's worth it. Functions longer than 600 characters (including comments) cannot be inlined and therefore they will typically be slower.

Whether that makes any meaningful difference to your application performance really depends on the application. In most cases it won't.


You can also just set a flag that changes that maximum length - there's more about that here: https://www.youtube.com/watch?v=FXyM1yrtloc

You certainly don't need server-side minification.


That's really odd. In my eyes, source code length is not a good way to measure the semantic size of a function. But what you're saying is very interesting; I learned something new.


it is not a good way for sure, but I think it is good enough for most of the cases.


Especially if people are mostly minifying their code already.


I never know this before! Thanks for sharing.


Wait, what if you have really really long comments? Or do they get stripped out beforehand?


Comments affect this heuristic, so yeah, commented code can be slower.


This slide deck has a nice example of using a comment to fix a performance bug in a js implementation of the chacha20 cipher: http://mrale.ph/talks/goto2015/#/14


Some libraries use annotations in comments. Therefore they cannot be stripped. Off the top of my head I know of some JavaScript testing libraries that do this.


Interesting. Is there a reason why the parsed AST size isn't used instead of raw source code size?


V8 doesn't use an AST, it uses a CFG, but I believe it comes down to efficiency - it's far cheaper to look at the length of a string than to traverse a graph, and by its nature JS needs very fast compilation times.

This is probably one of those heuristics that works well enough on enough real world code, even though everyone knows it's suboptimal. I've heard that the turbofan compiler will remove this limitation but that's still very much work in progress.


... and people wonder why we want a web bytecode so, so badly.



thanks


Only reason I brought it up was the assertion that V8 didn't have an AST. Only the most trivial of compilers avoid building an AST; V8 may not use an AST for interpretation, but interpretation / compilation will be downstream of the AST and could use info from the AST for optimization heuristics. A non-IDE AST would not normally include comments.


I remember thinking that it was odd when I first read about it, I think it must have been in relation to one of the other compilers and I got my wires crossed, but I can't find the source now. Thanks for the correction anyway.


That's really surprising. Thanks!


I did not know that, thanks!


Great news, The Future is here already! These reliable methods for telling computers what to compute are known as Programming Languages.


The closest paradigm to what I was trying to imply are more general purpose declarative languages. Something like sql or rich logic libraries that let the developer describe the desired result rather than the 'how.' Now advance this by 100 years, and I would hope anyone can program arbitrarily complex things by using graphical/natural-language tools to specify constraints, and then the 'program' arbitrarily generates the lower-level code.


So the future is Prolog?


It may be from the early 1970s, but compared to the mainstream programming languages of today, it still look pretty futuristic to me.


Aren't most things from the 70s? Did we get any serious new language tech since then? Tooling got nicer, runtimes faster - but the language breakthroughs?


pretty sure the only point of the .xxx TLD (aside from it being yet another source of income for ICANN of course), is that it clearly signals that the content is NSFW. It is totally reasonable for certain organisations to block it.


I was extremely surprised to see LG's profit margin being as low as 1.2c per device. That would be a poor profit margin for a chocolate bar, let alone a smartphone. That is obviously not sustainable.


Margins in consumer electronics are typically razor thin, particularly when the device in question is a commodity (mid-tier Android phones, for example).

1.2c is obviously unsustainable, as you mention. I wonder if they got blindsided by a price increase on some part.


How can these be razor thin and 1.2c when a trip to the local shops and the internet shows variations in the 10€ range for the same models ?


Because the price the store charges you is not the price the manufacturer charges the store.


It costs LG $10, they sell it to Best-WalGet for $10.012. the price range you see is depending on how much it gets marked up for retail.


Flagged because clearly this is an imposter. The real Satoshi would understand the need to verify his identity somehow along with his comment.


You're overstating it, there are only 2 other countries in the world that use imperial units


It's not a new concept, in the UK, Quidco[0] has been doing this for a decade[1], the only difference here seems to be the paid membership system whereas quidco shave a fraction off for themselves.

[0] http://www.quidco.com/

[1] https://en.wikipedia.org/wiki/Quidco


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: