Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
unscaled
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
81 ms
·
601.
▲
by
unscaled
10y ago
Does the free market really solves everything best? Did it solve Pi for very large number of decimal digits? Fermat's Last Theorem? Do you consult the free market when you want to decide what to do tomorrow? This maximalist position is
602.
▲
by
unscaled
10y ago
No, you can't really reason properly about what lives on the stack. As the Go FAQ say, you can safely assume a variable will be allocated on the stack if you never take a reference of it, but that's not always clear as it seems. F
603.
▲
by
unscaled
10y ago
Just putting libraries that were never designed to scale up behind RPC usually won't help you scale. These libraries tend to work with mutable, stateful objects and don't have any groundwork in place for partitioning. That doesn&#
604.
▲
by
unscaled
10y ago
By "classes are open" you mean that you can add methods to classes at will by just implementing a func with the right receiver? In that case they're not truly open: Go does not allow you to declare methods on receivers from o
605.
▲
by
unscaled
10y ago
No they're not. io.Reader and sync.Mutex do not embed the same type and do not have conflicting methods with the same name. This is how a diamond looks like: type Base struct { Foo int32 } type Child1 struct { Base }
606.
▲
by
unscaled
10y ago
> Go is a very original language in this aspect as well as with concurrency Actually it isn't. Using object Composition/Aggregation is a very old, and composition as the recommended paradigm dates back at least to COM (that
607.
▲
by
unscaled
10y ago
The problem is that some managers appear to be confusing "studies show that in most cases extra money does not increase employee performance" with "employees do not want more money". It's probably true that post-rai
608.
▲
by
unscaled
10y ago
Do you roll 10 of them in one hand and manually input the results back? For what purpose?
609.
▲
by
unscaled
10y ago
Pseudorandom bits are statistically indistinguishable from random bits if seeded with true randomness. And if your OS is properly configured it should be seeded with true randomness. If you prefer to use a dice, that's fine, but you&#x
610.
▲
by
unscaled
10y ago
You can also implement your own event loops with promises, but it's a matter of tradeoffs again: You can't control the way functions written by someone else will schedule their internal continuations - you can only control the way
611.
▲
by
unscaled
10y ago
You can acheive some composability (e.g. easily awaiting multiple events) by having first-class values for the coroutines/green-threads themselves. This is what greenlet/gevent does, and it's rather pleasant to use. Try doing
612.
▲
by
unscaled
10y ago
I assume this is exactly what SomeCallMeTim meant. Yes, explicitly awaitable futures/promises are slightly less ergonomic than coroutines, but this is a very reasonable trade-off. You give up: 1. Extra cognitive load every time you n
613.
▲
by
unscaled
10y ago
I was always puzzled by Python's insistence to forego string interpolation until the latest version. Runtime string formatting, even if done safely (e.g. .NET's String.Format() which doesn't have property access AFAIK), can s
614.
▲
by
unscaled
10y ago
Which is still not safe enough, and in effect can be used to access any global variable as described in the OP article. Rust formatting is done by macros - which expand at compile time and accept only string literals. This makes it impossib
615.
▲
by
unscaled
10y ago
China has a concept of face (面子 mianzi), but this concept is quite absent in Japanese culture, despite both of them being 'Oriental', and what you described right now will be quite baffling to a Japanese mind. Sure, Japan has a st
616.
▲
by
unscaled
10y ago
Many popular languages nowadays essentially have just one viable open source toolchain: Go has the Go toolchain (gccgo being niche), Python 3 has CPython (Jython and IronPython only support Python 2.7, and PyPy is not up-to-date), Swift has
617.
▲
by
unscaled
10y ago
The real problem with C (and to a lesser extent C++) nowadays is not just memory leaks or segfaults, but all the security vulnerabilities you get from the lack of memory safety. Your code might work 100% correctly for your users, but it may
618.
▲
by
unscaled
10y ago
3. Every falsehood that is true should be accounted for. 4. Every falsehood that is true CAN be accounted for. 5. Making your code compatible with a falsehood doesn't come with a price. 6. There are no falsehoods which are mutually exc
619.
▲
by
unscaled
10y ago
This unfortunately follows the conventions of the genre called "Falsehood programmers believe about X": http://spaceninja.com/2015/12/08/falsehoods-programmers-beli... I honestly think this genre is
620.
▲
by
unscaled
10y ago
Generics are not a show stopper, since they already exist (built-in support) for everything the language creators care about. Whether or not they are a show stopper for the users - well, that depends on your use case and preferences. Since
621.
▲
by
unscaled
10y ago
Well, had C been really strongly-typed then the hypothetical 'int[5]' and 'int[7]' would have been different types, and 'int[]' would be the size-agnostic type for an array. Then you could easily get creature c
622.
▲
by
unscaled
10y ago
Berlin is one of the LEAST homogenous cities in Europe, so it has to break this argument down.
623.
▲
by
unscaled
10y ago
You mean, some tech companies understand the difference between Data Science, AI in general, ML and Deep Learning and try to utilize the best tools in hand to handle their data. But what is driving this hype, as well as the Blockchain hyp
624.
▲
by
unscaled
10y ago
I can see where this received wisdom is coming from: a counter-reaction to the common tendency we had well into the 90s to hand-optimize every procedure considered to be even remotely on the hot path. It didn't even have to be inline a
625.
▲
by
unscaled
10y ago
I've made the same set-up us well for private services hosted on public IPs which we couldn't put behind a VPN, but I have to say admit this process is not without its own pains. Nginx for one, didn't have client-certificate
626.
▲
by
unscaled
10y ago
This! The UX is downright horrible, but the lack of logout functionality kills most of the extra security we get from client certs.
627.
▲
by
unscaled
10y ago
The functional programming approach to UI has more advantages than that. In my opinion, its greatest boon is that it allows you to cleanly separate UI logic, UI state and the actual data models, and reason about them in a straightforward wa
628.
▲
by
unscaled
10y ago
Why is it fair that an employer can force an employee to kill kittens and then fire the employee and prevent them from ever working when they refuse? Do you realize that what you just said has nothing to do with Non-compete clauses?
629.
▲
by
unscaled
10y ago
> However, Ballmer was simply inarguably an effective CEO from the perspective of investors. Reasonably effective, but not inarguably, since investor basically care only about one thing only: RoI. Under Ballmer's reign, the stock ge
630.
▲
by
unscaled
10y ago
The smartphone ship has sailed long time ago, and no matter what magical flagship Microsoft releases, they would never gain dominance or even notability in the mobile space. Nadella himself as admitted as much. They're probably not goi
More ›