Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
phpnode
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
691.
▲
by
phpnode
10y ago
It's not a random sequence of characters, there are only 12 words in there. The cracker is trying words, not just random bytes and so the search space is much smaller
692.
▲
by
phpnode
10y ago
Rainbow tables aren't really a thing any more, you can calculate a hash much faster than you can download one
693.
▲
by
phpnode
10y ago
That's a very different attack vector to the one in this post - buffer overflow vs legit service running on open ports unbeknownst to the user
694.
▲
by
phpnode
10y ago
Still waiting for you to make good on this promise :)
695.
▲
by
phpnode
10y ago
GDC = Global Development Centre
696.
▲
by
phpnode
10y ago
We're all here to learn, if you've got some insight into what the article got wrong then why don't you school us?
697.
▲
by
phpnode
10y ago
Looks refreshing! http://d2ydh70d4b5xgv.cloudfront.net/images/2/c/vintage-mark...
698.
▲
by
phpnode
10y ago
I've never seen a type system expressive enough to cover all the things that contracts can do, e.g does a type system exist which can assert the existence and size of a particular file on disk?
699.
▲
by
phpnode
10y ago
Contracts are just structured assertions, they're very similar.
700.
▲
by
phpnode
10y ago
Your argument seems more like one against transpilers in general. Contracts are useful during development, they're typically stripped out in production builds, so there's no performance overhead there. If you find a bug in product
701.
▲
by
phpnode
10y ago
Limited Partners
702.
▲
by
phpnode
10y ago
It's definitely most useful when combined with type annotations. They're complementary tools, annotations can ensure type safety at compile time, but type safety is only one part of program correctness, whereas contracts can valid
703.
▲
by
phpnode
10y ago
It's always baffled me why more people don't seem interested in adopting design by contract, it is a ridiculously powerful tool for writing quality software. Here's a Babel plugin which adds design by contract to JavaScript,
704.
▲
by
phpnode
10y ago
No SIMD intrinsics yet
705.
▲
by
phpnode
10y ago
Fried. Not deep fried. No one would do that.
706.
▲
by
phpnode
10y ago
You wanted to open a bank account in Germany, yet couldn't ask even the most basic questions in German? And you characterise this as a failing of the other party (the bank)? That is insane!
707.
▲
by
phpnode
10y ago
I think you'd run into escaping issues like that. It would have to be: <JavaScript src={`[1, 2, 3].map(n => n + 1)`} />
708.
▲
by
phpnode
10y ago
Do you have a link to that poem?
709.
▲
by
phpnode
10y ago
It bothered me more than it should have that you used isuckat@passwords.com instead of isuck@passwords.com for your example :)
710.
▲
by
phpnode
10y ago
That doesn't need to be true for this to have happened. Zuck is a high profile target, probably the hackers just prioritised cracking his account and such a weak password would be found reasonably quickly even using bcrypt
711.
▲
by
phpnode
10y ago
You are asking a question, I do not owe you an answer, it's up to you to find out whether this stuff matters for your use case. I've done these tests myself, it is trivial for you to do the same. Do your own homework.
712.
▲
by
phpnode
10y ago
By the same token, why do I owe you any further evidence?
713.
▲
by
phpnode
10y ago
Check out the Bluebird benchmarks [0], or you can easily try it for yourself - create a simple web server which does some makework async task, like stating a bunch of files, then benchmark with ab or something better. [0] https://
714.
▲
by
phpnode
10y ago
The call itself is relatively expensive, but as you say it's a one off call at startup time and the methods it produces are faster than explicit promisification using `new Promise`, they are blazing fast :)
715.
▲
by
phpnode
10y ago
Bluebird's `promisifyAll()` is just a way to generalize that pattern, so that you don't need to write it yourself. And if you care about performance it's substantially faster too. If you want to learn about the pattern then f
716.
▲
by
phpnode
10y ago
Presumably instances of `MyObject` can be accessed by functions which are running while this function is suspended, waiting for the network call. It's single threaded, as in only one thing happens at a time from JS's point of view
717.
▲
by
phpnode
10y ago
Bluebird is mainly designed for node (V8) and promise performance can make a massive difference on the server. On the client there tend to be fewer async calls and so promise performance is usually less of a factor, but obviously, it depe
718.
▲
by
phpnode
10y ago
> Isn't the whole point of promises that they can be chained together without nesting? Yes, it's an excedingly common misunderstanding and probably one of the main causes of people being "turned off" by promises. It&#
719.
▲
by
phpnode
10y ago
I think your examples could be simplified: export default function getUsers () { return getUsersFromDB() .then(filterUsersWithFriends) .then(getUsersLikes); } And there's just about never a reason to use
720.
▲
by
phpnode
10y ago
This is happening because of compiler optimisation technique called Loop Invariant Code Motion [0], which means that the author is not measuring what he thinks he's measuring (and this should be obvious from the numbers really), so the
More ›