Better HN
topnewbestaskshowjobs
Log inSign up

_Codemonkeyism

3,311 karma · joined Sep 10, 2015 (11y ago) · 1,565 submissions

Submissions

comment 11y ago · link · parent

Sounds to me like VW or Nvidia:

(Why so fast)

"On the downside I did not validate the unused side-structures. I think it is not necessary to validate data you are not using. So basically I only scan them so much as to find where they end. Granted it is a bit of optimization for a benchmark, but is actually handy in real-life as well."

comment 11y ago · link · parent

I often use jq to extract data from REST apis, e.g. email addresses I need in a CSV file.

comment 11y ago · link · parent

IANAL.

The EuGH court made it's decision that safe harbor is no longer considered lawful (triggered by a law suit by an Austrian against Facebook in Ireland). It basically says that EU data protection agencies can investigate companies for data protection issues even if the EU company uses an US company that is Safe Harbor certified.

This is due to the fact that the EuGH considers NSA snooping unlawful, especially that EU citizizens do not know about the spying and have no legal way in the US.

Beside Safe Harbor US companies provide data protection for EU companies based on EU model clauses. US enterprises share information about their employees back into the US based on 'corporate bindings'.

The 29 Working Group of EU data protection agencies issued their opinion last week on the EuGH decision

http://ec.europa.eu/justice/data-protection/article-29/press...

Interesting parts:

- Safe Harbor is unlawful for EU companies ("In any case, transfers that are still taking place under the Safe Harbour decision after the CJEU judgment are unlawful.")

- Model clauses and corporate bindings can only be used until the end of January 2016

"In the meantime, the Working Party will continue its analysis on the impact of the CJEU judgment on other transfer tools. During this period, data protection authorities consider that Standard Contractual Clauses and Binding Corporate Rules can still be used [...]

If by the end of January 2016, no appropriate solution is found with the US authorities and depending on the assessment of the transfer tools by the Working Party, EU data protection authorities are committed to take all necessary and appropriate actions, which may include coordinated enforcement actions."

Most unlikely those will be extended beyond January 2016 if one reads the opinion of different national agencies.

PS: Gmail is based on these legal frameworks.

comment 11y ago · link · parent

Will be interesting times for EU startups when at the end of January 2016 model clauses and corporate bindings break down due to the 29 Working Group and EuGH decisions.

comment 11y ago · link · parent

On the Postgres list

"Sadly, fractal trees are an invention of Tokutek and are heavily and publically patented."

comment 11y ago · link · parent

Some countries require health checks on drivers so they don't act as super spreaders.

comment 11y ago · link · parent

The arguments look a little bit like the CanBuildFrom in Scala, which makes container methods really nice (return same container type that you gave it) but method signatures harder to read, with the argument that it makes Java developers go away.

comment 11y ago · link · parent

No success yet, but if you find a company that pays a CTO with 4x8h give me a call.

comment 11y ago · link · parent

Google is your friend.

comment 11y ago · link · parent

I would like to try out a 10h workday with 4days/week and a 3 day weekend. Some studies say a 3 day weekend makes you happier and more productive.

comment 11y ago · link · parent

Concerning his claims about CAP and that their cluster is neither C nor A, because of P, while Percona claims it is CA,

some days ago a paper was linked here

"A Critique of the CAP Theorem" - http://arxiv.org/abs/1509.05393

which I found very englighting about the P in CAP.

comment 11y ago · link · parent

1. I don't think that the number crunching paper I've cited is a "microbenchmark".

2. You seem to have missed the "bad Java" part, and my reply to Mechanical Sympathy.

comment 11y ago · link · parent

I can understand the appeal, marketing Javascript to CIO/CTO is much easier than marketing Lua today.

(Which obviously is sad as in my humble opionion for various reasons Lua is the better embedded language. I hoped it could become a widely adopted standard, we had great success with Lua in Redis in the past).

comment 11y ago · link · parent

I'm totally with you. JS is such a bad language, might get better in the future with ES<X> but I guess not. It has many quick hacks (in the bad sense), admitted by it's author.

Interesting pattern I see lately is industry pundits on the CIO side advocate Javascript for inhouse tooling. I guess they have not much experience with programming languages.

With JS making inroads into CIO territory, we'll see a much higher usage in the future. And a much larger fallout with tons of unmaintainable legacy code.

It's like the times when everything needed Java, like Oracle added Java into their DBs for stored procedures. I guess Oracle will add JS too (or have they already?).

comment 11y ago · link · parent

[Edit: The LMAX guys showed how much more performance is possible with aligning code with CPU/hardware (in this case for Java)

http://mechanical-sympathy.blogspot.de/ ]

comment 11y ago · link · parent

"a) IO is such a large portion of the problem"

I'm very interested in a cluster benchmark therefor, say 10 servers, as Cassandra claims to scale very well. With a cluster IO has a higher performance impact than one server with local RAID IO.

comment 11y ago · link · parent

Sad day.

My wife found the Yogi Berra book in our bookshelf lately and I needed to explain that

a.) Yogi is no Yogi

b.) He's genius and sounds like a mix of Zen master and Yogi.

comment 11y ago · link · parent

10x speedup (same algorithms, same architecture) replacing Java with C++ is not possible (~2x at max).

One of the latest benchmarks I've seen is "Comparison of Programming Languages in Economics" [1] for code without any IO just number crunching, has a 1.91 to 2.69 speedup of using C++ compared to Java. So any code involving IO is going to be slower.

Replacing bad Java code with excellent machine aligned C++ a 10x speedup is possible.

[1] https://github.com/jesusfv/Comparison-Programming-Languages-...

comment 11y ago · link · parent

I thought the same when I've stumbled on it.

comment 11y ago · link · parent

Was stunned two when hit the first time by such a tsunami. Your blog post is great, don't think this is common knowledge.

comment 11y ago · link · parent

From my experience running eCommerce sites, the author is right, beside fraud 'noise', fraud happens in waves.

comment 11y ago · link · parent

1. The best book I've read on sales is:

"How I Raised Myself from Failure to Success in Selling"(1952) by Frank Bettger

2. Everything at Heavybit is excellent,

their sales videos are very nice:

http://www.heavybit.com/library/developer-sales

And an must see video for me was:

http://www.heavybit.com/library/video/2015-05-12-jason-lemki...

1553.

SnapChat now takes $0.99 for 3 Replays(blog.snapchat.com ↗)

7 points · by _Codemonkeyism · 11y ago · 3 comments

comment 11y ago · link · parent

I agree with concurrency making code harder to reason and read. Beside flow variables I've found Futures a readable solution though.

The example should be considered IO code, which is hard to speed up as you're limited by the other side, not your code. Also I'd say it's much faster in real production environments but you have more calls than three to backend services. I will try to make the calling of backend services clearer in the guide, thanks.

comment 11y ago · link · parent

You are right.

I try to add something in the end about thread pools. I didn't want to go into the thread/Core, different thread pools for IO/computation and thread pool for blocking direction to make it more complex.

comment 11y ago · link · parent

Thanks.

About monads: Feared that too, will remove monad references and add something to the end about monads.

comment 11y ago · link · parent

Thanks for the feedback.

I've struggled what to name developers who write server side web code and thought web developer is better than frontend developer.

[Edit: And I didn't want to make this about Scala but be insightful to others as well. "For" in Scala is very specific though I admit, but I'd add other examples on how to combine Futures in other languages (perhaps not Haskell as a lot has been written here before, much better than I could)]

comment 11y ago · link · parent

Author here, if you have anything to add, I'm glad to add it to make it a comprehensive guide on Futures.

1559.

A Little Guide on Using Concurrent Futures for Web Developers(codemonkeyism.com ↗)

63 points · by _Codemonkeyism · 11y ago · 14 comments

comment 11y ago · link · parent

I've meant playing with the idea for a programming language.

With Future I've meant would it be easy to put a Future based API which I like b/c of composiblity on top of Quasar, e.g. on top of fibers.

(Futures are just an API to concurrency not concurrency itself that can sit on actors, forkjoin, ...)

1
4950515253